diff options
author | patdenice <patdenice@piwigo.org> | 2011-03-09 14:22:48 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2011-03-09 14:22:48 +0000 |
commit | 8b64b57a27139a671800c6768133be0a8bb6d35f (patch) | |
tree | 238df6041c9c5ab9edd93d2465d9fbf3b03598d7 /admin/themes/default/template/element_set_ranks.tpl | |
parent | 0552013a5765ffa46aabf93068eeb2109c2cb9e4 (diff) |
feature:2114
Simplify all admin templates.
git-svn-id: http://piwigo.org/svn/trunk@9586 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/template/element_set_ranks.tpl')
-rw-r--r-- | admin/themes/default/template/element_set_ranks.tpl | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/admin/themes/default/template/element_set_ranks.tpl b/admin/themes/default/template/element_set_ranks.tpl index da2c2ade5..1b2fe1120 100644 --- a/admin/themes/default/template/element_set_ranks.tpl +++ b/admin/themes/default/template/element_set_ranks.tpl @@ -1,5 +1,3 @@ -{combine_script id='jquery.ui' load='async' require='jquery' path='themes/default/js/ui/minified/jquery.ui.core.min.js' } -{combine_script id='jquery.ui.sortable' load='async' require='jquery.ui' path='themes/default/js/ui/minified/jquery.ui.sortable.min.js' } {footer_script require='jquery.ui.sortable'}{literal} jQuery(document).ready(function() { function checkOrderOptions() { @@ -11,15 +9,15 @@ jQuery(document).ready(function() { jQuery('ul.thumbnails').sortable( { revert: true, opacity: 0.7, - handle: $('.rank-of-image').add('.rank-of-image img'), + handle: jQuery('.rank-of-image').add('.rank-of-image img'), update: function() { - $(this).find('li').each(function(i) { - $(this).find("input[name^=rank_of_image]").each(function() { - $(this).attr('value', (i+1)*10) + jQuery(this).find('li').each(function(i) { + jQuery(this).find("input[name^=rank_of_image]").each(function() { + jQuery(this).attr('value', (i+1)*10) }); }); - $('#image_order_rank').attr('checked', true); + jQuery('#image_order_rank').attr('checked', true); checkOrderOptions(); } }); |