Changeset 3880:e6d1f6d9d7df for admin/js/_blog_theme.js
- Timestamp:
- 09/18/18 20:22:10 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/_blog_theme.js
r3768 r3880 5 5 // expend theme info 6 6 $('.module-sshot').not('.current-theme .module-sshot').each(function() { 7 varbar = $('<div>').addClass('bloc-toggler');7 const bar = $('<div>').addClass('bloc-toggler'); 8 8 $(this).after( 9 9 $(bar).toggleWithLegend($(this).parent().children('.toggle-bloc'), { … … 22 22 // dirty short search blocker 23 23 $('div.modules-search form input[type=submit]').click(function() { 24 varmlen = $('input[name=m_search]', $(this).parent()).val();24 const mlen = $('input[name=m_search]', $(this).parent()).val(); 25 25 if (mlen.length > 2) { 26 26 return true; … … 37 37 // actions tests 38 38 $('.modules-form-actions').each(function() { 39 varrxActionType = /^[^\[]+/;40 varrxActionValue = /([^\[]+)\]$/;41 varcheckboxes = $(this).find('input[type=checkbox]');39 const rxActionType = /^[^\[]+/; 40 const rxActionValue = /([^\[]+)\]$/; 41 const checkboxes = $(this).find('input[type=checkbox]'); 42 42 43 43 // check if submit is a global action or one line action 44 44 $('input[type=submit]', this).click(function() { 45 varkeyword = $(this).attr('name');45 const keyword = $(this).attr('name'); 46 46 if (!keyword) { 47 47 return true; 48 48 } 49 varmaction = keyword.match(rxActionType);50 varaction = maction[0];51 varmvalues = keyword.match(rxActionValue);49 const maction = keyword.match(rxActionType); 50 const action = maction[0]; 51 const mvalues = keyword.match(rxActionValue); 52 52 53 53 // action on multiple modules 54 54 if (!mvalues) { 55 varchecked = false;55 let checked = false; 56 56 57 57 // check if there is checkboxes in form … … 76 76 // action on one module 77 77 } else { 78 varmodule = mvalues[1];78 const module = mvalues[1]; 79 79 80 80 // confirm delete
Note: See TracChangeset
for help on using the changeset viewer.