Ignore:
Timestamp:
Feb 23, 2012, 11:33:51 AM (13 years ago)
Author:
plg
Message:

bug fixed: rotate HD was never called even if checkbox was checked

Location:
extensions/rotateImage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/rotateImage/rotate_image.tpl

    r12481 r13314  
    1111    {
    1212      angle = jQuery('select[name="rotate_angle"]').val();
     13      rotate_hd = jQuery("#rotate_hd").is(':checked');
    1314      e.stopPropagation();
    1415    }
     
    5556          format: 'json',
    5657          angle: angle,
     58          rotate_hd: rotate_hd,
    5759          pwg_token: ri_pwg_token,
    5860          image_id: elements[i]
     
    8385    <tr>
    8486      <th><label for="rotate_hd">{'Also rotate HD image'|@translate}</label></th>
    85       <td><input type="checkbox" name="rotate_hd" id="rotate_hd" {if $upload_form_settings.thumb_crop}checked="checked"{/if}></td>
     87      <td><input type="checkbox" name="rotate_hd" id="rotate_hd" checked="checked"></td>
    8688    </tr>
    8789    {/if}
  • extensions/rotateImage/ws_functions.inc.php

    r12417 r13314  
    3636  $image_id=(int)$params['image_id'];
    3737  $angle=(int)$params['angle'];
    38   $rotate_hd = (int) $params['rotate_hd'];
     38  $rotate_hd = get_boolean($params['rotate_hd']);
    3939  $query='
    4040SELECT id, path, tn_ext, has_high
Note: See TracChangeset for help on using the changeset viewer.