- Timestamp:
- Mar 9, 2011, 3:22:48 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/themes/default/template/element_set_ranks.tpl
r9559 r9586 1 {combine_script id='jquery.ui' load='async' require='jquery' path='themes/default/js/ui/minified/jquery.ui.core.min.js' }2 {combine_script id='jquery.ui.sortable' load='async' require='jquery.ui' path='themes/default/js/ui/minified/jquery.ui.sortable.min.js' }3 1 {footer_script require='jquery.ui.sortable'}{literal} 4 2 jQuery(document).ready(function() { … … 12 10 jQuery('ul.thumbnails').sortable( { 13 11 revert: true, opacity: 0.7, 14 handle: $('.rank-of-image').add('.rank-of-image img'),12 handle: jQuery('.rank-of-image').add('.rank-of-image img'), 15 13 update: function() { 16 $(this).find('li').each(function(i) {17 $(this).find("input[name^=rank_of_image]").each(function() {18 $(this).attr('value', (i+1)*10)14 jQuery(this).find('li').each(function(i) { 15 jQuery(this).find("input[name^=rank_of_image]").each(function() { 16 jQuery(this).attr('value', (i+1)*10) 19 17 }); 20 18 }); 21 19 22 $('#image_order_rank').attr('checked', true);20 jQuery('#image_order_rank').attr('checked', true); 23 21 checkOrderOptions(); 24 22 }
Note: See TracChangeset
for help on using the changeset viewer.