Changeset 1563:f219d9220033
- Timestamp:
- 08/24/13 14:31:03 (12 years ago)
- Branch:
- default
- Location:
- admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/categories.php
r1553 r1563 183 183 if (count($combo_action)>0) { 184 184 echo 185 '<div class="t wo-cols">'.185 '<div class="three-cols">'. 186 186 '<p class="col checkboxes-helpers"></p>'. 187 '<div class="col right">'.188 '< p class="cat-actions"><label for="action" class="classic">'.__('Selected categories action:').'</label> '.189 form::combo(' action',$combo_action).' '.190 '< span id="mov-cat"><label for="mov_cat">'.__('Choose the category which will receive its entries:').'</label>'.191 form::combo('mov_cat',array_merge(array(__('(No cat)') => ''),$categories_combo),'','').' </span>'.187 '<div class="col" id="mov-cat">'. 188 '<label for="mov_cat">'.__('Choose the category which will receive its entries:').'</label> '. 189 form::combo('mov_cat',array_merge(array(__('(No cat)') => ''),$categories_combo),'',''). 190 '</div>'. 191 '<div class="col">'. 192 192 $core->formNonce(). 193 '<input type="submit" value="'.__(' OK').'" /></p>'.193 '<input type="submit" value="'.__('Delete').'"/>'. 194 194 '</div>'. 195 195 '</div>'. -
admin/js/_categories.js
r1551 r1563 18 18 }); 19 19 20 $('#mov_cat').parent().hide();21 $('input[name="categories[]"]').click(function() {22 if ($('input[name="categories[]"].notempty:checked').length>0) {23 $('#mov_cat').parent().show().parent().removeClass('two-cols').addClass('three-cols');24 } else {25 $('#mov_cat').parent().hide().parent().removeClass('three-cols').addClass('two-cols');26 }27 });28 29 20 dotclear.categoriesActionsHelper(); 30 21 -
admin/js/common.js
r1556 r1563 304 304 categoriesActionsHelper: function() { 305 305 $('#form-categories').submit(function() { 306 var action = $(this).find('select[name="action"]').val(); 307 var checked = false; 308 309 $(this).find('input[name="categories[]"]').each(function() { 310 if (this.checked) { 311 checked = true; 312 } 313 }); 314 315 if (!checked) { return false; } 316 317 if (action == 'delete') { 318 return window.confirm(dotclear.msg.confirm_delete_categories.replace('%s',$('input[name="categories[]"]:checked').size())); 319 } 320 321 return true; 306 var nb_ckecked = $('input[name="categories[]"]:checked').length; 307 if (nb_ckecked==0) { 308 return false; 309 } 310 311 return window.confirm(dotclear.msg.confirm_delete_categories.replace('%s',nb_ckecked)); 322 312 }); 323 313 },
Note: See TracChangeset
for help on using the changeset viewer.