Ignore:
Timestamp:
Mar 9, 2011, 3:22:48 PM (13 years ago)
Author:
patdenice
Message:

feature:2114
Simplify all admin templates.

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' }
    31{footer_script require='jquery.ui.sortable'}{literal}
    42jQuery(document).ready(function() {
     
    1210  jQuery('ul.thumbnails').sortable( {
    1311    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'),
    1513    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)
    1917        });
    2018      });
    2119
    22       $('#image_order_rank').attr('checked', true);
     20      jQuery('#image_order_rank').attr('checked', true);
    2321      checkOrderOptions();
    2422    }
Note: See TracChangeset for help on using the changeset viewer.