Changeset 26925


Ignore:
Timestamp:
01/23/14 18:35:31 (6 years ago)
Author:
plg
Message:

compatibility with Piwigo 2.6 (jQuery 1.10)

bug fixed: correctly load language for "Rotate" photo edition tab

Location:
extensions/rotateImage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/rotateImage/main.inc.php

    r16981 r26925  
    1616add_event_handler('loc_begin_element_set_global', 'rotate_image_set_template_data'); 
    1717function rotate_image_set_template_data() { 
    18   global $template,$lang; 
    19   load_language('plugin.lang', dirname(__FILE__).'/'); 
     18  global $template; 
    2019 
    2120  include_once(PHPWG_ROOT_PATH.'admin/include/image.class.php'); 
     
    7170add_event_handler('tabsheet_before_select','rotate_image_add_tab', 50, 2); 
    7271function rotate_image_add_tab($sheets, $id) 
    73  
     72{ 
     73  load_language('plugin.lang', dirname(__FILE__).'/'); 
     74   
    7475  if ($id == 'photo') 
    7576  { 
  • extensions/rotateImage/rotate_image.tpl

    r16973 r26925  
    5151 
    5252    elements = Array(); 
    53     if (jQuery('input[name="setSelected"]').attr('checked')) 
     53 
     54    if (jQuery('input[name=setSelected]').is(':checked')) { 
    5455      elements = all_elements; 
    55     else 
    56       jQuery('input[name="selection[]"]').each(function() { 
    57         if (jQuery(this).attr('checked')) { 
    58           elements.push(jQuery(this).val()); 
    59         } 
     56    } 
     57    else { 
     58      jQuery('input[name="selection[]"]').filter(':checked').each(function() { 
     59        elements.push(jQuery(this).val()); 
    6060      }); 
     61    } 
     62 
    6163    progressBar_max = elements.length; 
    6264    todo = 0; 
Note: See TracChangeset for help on using the changeset viewer.