Changeset 26925 for extensions
- Timestamp:
- Jan 23, 2014, 6:35:31 PM (11 years ago)
- Location:
- extensions/rotateImage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rotateImage/main.inc.php
r16981 r26925 16 16 add_event_handler('loc_begin_element_set_global', 'rotate_image_set_template_data'); 17 17 function rotate_image_set_template_data() { 18 global $template,$lang; 19 load_language('plugin.lang', dirname(__FILE__).'/'); 18 global $template; 20 19 21 20 include_once(PHPWG_ROOT_PATH.'admin/include/image.class.php'); … … 71 70 add_event_handler('tabsheet_before_select','rotate_image_add_tab', 50, 2); 72 71 function rotate_image_add_tab($sheets, $id) 73 { 72 { 73 load_language('plugin.lang', dirname(__FILE__).'/'); 74 74 75 if ($id == 'photo') 75 76 { -
extensions/rotateImage/rotate_image.tpl
r16973 r26925 51 51 52 52 elements = Array(); 53 if (jQuery('input[name="setSelected"]').attr('checked')) 53 54 if (jQuery('input[name=setSelected]').is(':checked')) { 54 55 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()); 60 60 }); 61 } 62 61 63 progressBar_max = elements.length; 62 64 todo = 0;
Note: See TracChangeset
for help on using the changeset viewer.