Plugin Directory

Changeset 653523


Ignore:
Timestamp:
01/16/2013 10:57:03 AM (12 years ago)
Author:
grayhound1
Message:

bugfix

Location:
uploadcare/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uploadcare/trunk/readme.txt

    r652777 r653523  
    44Requires at least: 3.3+
    55Tested up to: 3.4
    6 Stable tag: 1.0.4
     6Stable tag: 1.0.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5454== Changelog ==
    5555
     56= 1.0.5 =
     57* Bugfix
     58
    5659= 1.0.4 =
    5760* Bugfix
  • uploadcare/trunk/uploadcare_files.php

    r652359 r653523  
    6969                    <div style="float: left; width: 200px; height: 250px; margin-left: 10px; text-align: center;">
    7070                        <?php if ($_file->is_file): ?>
    71                         <a href="<?php echo $file; ?>" target="_blank"><div style="width: 200px; height: 200px;line-height: 200px;"><img src="https://ucarecdn.com/assets/images/logo.png" /></div><br /></a>
     71                        <a href="<?php echo $file; ?>" target="_blank"><div style="width: 200px; height: 200px;line-height: 200px;"><img src="https://ucarecdn.com/assets/images/logo.png" /></div></a>
    7272                        <?php else: ?>
    7373                        <a href="<?php echo $file; ?>" target="_blank"><img src="<?php echo $file->scaleCrop(200, 200, true); ?>" /></a><br />
    7474                        <?php endif; ?>
    75                         <a href="<?php echo change_param(change_param($uri, 'delete', 'true'), 'file_id', $file->getFileId());?>" onclick="document.location.href=document.location.href+'&delete=true&file_id=<?php echo $file->getFileId(); ?>'" style="color: red;">Delete</a> | <a href="<?php echo $file; ?>" target="_blank">View</a>
     75                        <a href="<?php echo change_param(change_param($uri, 'delete', 'true'), 'file_id', $file->getFileId());?>" onclick="document.location.href=document.location.href+'&delete=true&file_id=<?php echo $file->getFileId(); ?>'" style="color: red;">Delete</a> | <a href="<?php echo $file; ?>" target="_blank"><?php if ($_file->is_file): ?>Download<?php else: ?>View<?php endif; ?></a>
    7676                    </div>
    7777                <?php endforeach; ?>
  • uploadcare/trunk/uploadcare_media_menu_handle.php

    r652929 r653523  
    190190</div>
    191191</div>
     192<style type="text/css">
     193<!--
     194.uc_alert {
     195    border: 1px solid red! important;
     196}
     197-->
     198</style>
    192199<script type="text/javascript">
    193200jQuery(function() {
     
    203210            if (isNaN(_r_h)) _r_h = 0;     
    204211            if (_r_w <= 0) {
    205                 jQuery('#resize_width').css('border', '1px solid red');
     212                jQuery('#resize_width').addClass('uc_alert');
    206213                show_preview = false;
    207214            } else {
    208                 jQuery('#resize_width').css('border', 'none');
     215                jQuery('#resize_width').removeClass('uc_alert');
    209216            }
    210217            if (_r_h <= 0) {
    211                 jQuery('#resize_height').css('border', '1px solid red');
     218                jQuery('#resize_height').addClass('uc_alert');
    212219                show_preview = false;
    213220            } else {
    214                 jQuery('#resize_height').css('border', 'none');
     221                jQuery('#resize_height').removeClass('uc_alert');
    215222            }
    216223            if (_r_w > 0 || _r_h > 0) {
    217                 jQuery('#resize_width').css('border', 'none');
    218                 jQuery('#resize_height').css('border', 'none');
     224                jQuery('#resize_width').removeClass('uc_alert');
     225                jQuery('#resize_height').removeClass('uc_alert');
    219226                show_preview = true;
    220227            }
     
    226233            if (isNaN(_c_h)) _c_h = 0;                 
    227234            if (_c_w <= 0) {
    228                 jQuery('#scale_crop_width').css('border', '1px solid red');
     235                jQuery('#scale_crop_width').addClass('uc_alert');
    229236                show_preview = false;
    230237            } else {
    231                 jQuery('#scale_crop_width').css('border', 'none');
     238                jQuery('#scale_crop_width').removeClass('uc_alert');
    232239            }   
    233240            if (_c_h <= 0) {
    234                 jQuery('#scale_crop_height').css('border', '1px solid red');
     241                jQuery('#scale_crop_height').addClass('uc_alert');
    235242                show_preview = false;
    236243            } else {
    237                 jQuery('#scale_crop_height').css('border', 'none');
     244                jQuery('#scale_crop_height').removeClass('uc_alert');
    238245            }
    239246        }
     
    258265    jQuery('#resize').click(function() {
    259266        if (jQuery('#resize').attr('checked')) {
    260             jQuery('#scale_crop_width').css('border', '');
    261             jQuery('#scale_crop_height').css('border', '');         
     267            jQuery('#scale_crop_width').removeClass('uc_alert');
     268            jQuery('#scale_crop_height').removeClass('uc_alert');           
    262269        }
    263270    });
     
    265272    jQuery('#scale_crop').click(function() {
    266273        if (jQuery('#scale_crop').attr('checked')) {
    267             jQuery('#resize_width').css('border', '');
    268             jQuery('#resize_height').css('border', '');
     274            jQuery('#resize_width').removeClass('uc_alert');
     275            jQuery('#resize_height').removeClass('uc_alert');
    269276        }
    270277    });
Note: See TracChangeset for help on using the changeset viewer.