Changeset 3926:199b1f662109 for admin
- Timestamp:
- 11/13/18 11:30:23 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/filter-controls.js
r3880 r3926 1 /*global $, dotclear */1 /*global $, dotclear, getData */ 2 2 'use strict'; 3 3 4 4 $(function() { 5 // Get some DATA 6 Object.assign(dotclear.msg, getData('filter_controls')); 7 5 8 let reset_url = '?'; 6 9 if (dotclear.filter_reset_url != undefined) { … … 11 14 $filtersform.before(`<p><a id="filter-control" class="form-control" href="${reset_url}" style="display:inline">${dotclear.msg.filter_posts_list}</a></p>`); 12 15 13 if ( dotclear.msg.show_filters == 'false') {16 if (!dotclear.msg.show_filters) { 14 17 $filtersform.hide(); 15 18 } else { … … 21 24 $('#filter-control').click(function() { 22 25 if ($(this).hasClass('open')) { 23 if (dotclear.msg.show_filters == 'true') {26 if (dotclear.msg.show_filters) { 24 27 return true; 25 28 } else {
Note: See TracChangeset
for help on using the changeset viewer.