Changeset 653523
- Timestamp:
- 01/16/2013 10:57:03 AM (12 years ago)
- Location:
- uploadcare/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uploadcare/trunk/readme.txt
r652777 r653523 4 4 Requires at least: 3.3+ 5 5 Tested up to: 3.4 6 Stable tag: 1.0. 46 Stable tag: 1.0.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 54 54 == Changelog == 55 55 56 = 1.0.5 = 57 * Bugfix 58 56 59 = 1.0.4 = 57 60 * Bugfix -
uploadcare/trunk/uploadcare_files.php
r652359 r653523 69 69 <div style="float: left; width: 200px; height: 250px; margin-left: 10px; text-align: center;"> 70 70 <?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> 72 72 <?php else: ?> 73 73 <a href="<?php echo $file; ?>" target="_blank"><img src="<?php echo $file->scaleCrop(200, 200, true); ?>" /></a><br /> 74 74 <?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> 76 76 </div> 77 77 <?php endforeach; ?> -
uploadcare/trunk/uploadcare_media_menu_handle.php
r652929 r653523 190 190 </div> 191 191 </div> 192 <style type="text/css"> 193 <!-- 194 .uc_alert { 195 border: 1px solid red! important; 196 } 197 --> 198 </style> 192 199 <script type="text/javascript"> 193 200 jQuery(function() { … … 203 210 if (isNaN(_r_h)) _r_h = 0; 204 211 if (_r_w <= 0) { 205 jQuery('#resize_width'). css('border', '1px solid red');212 jQuery('#resize_width').addClass('uc_alert'); 206 213 show_preview = false; 207 214 } else { 208 jQuery('#resize_width'). css('border', 'none');215 jQuery('#resize_width').removeClass('uc_alert'); 209 216 } 210 217 if (_r_h <= 0) { 211 jQuery('#resize_height'). css('border', '1px solid red');218 jQuery('#resize_height').addClass('uc_alert'); 212 219 show_preview = false; 213 220 } else { 214 jQuery('#resize_height'). css('border', 'none');221 jQuery('#resize_height').removeClass('uc_alert'); 215 222 } 216 223 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'); 219 226 show_preview = true; 220 227 } … … 226 233 if (isNaN(_c_h)) _c_h = 0; 227 234 if (_c_w <= 0) { 228 jQuery('#scale_crop_width'). css('border', '1px solid red');235 jQuery('#scale_crop_width').addClass('uc_alert'); 229 236 show_preview = false; 230 237 } else { 231 jQuery('#scale_crop_width'). css('border', 'none');238 jQuery('#scale_crop_width').removeClass('uc_alert'); 232 239 } 233 240 if (_c_h <= 0) { 234 jQuery('#scale_crop_height'). css('border', '1px solid red');241 jQuery('#scale_crop_height').addClass('uc_alert'); 235 242 show_preview = false; 236 243 } else { 237 jQuery('#scale_crop_height'). css('border', 'none');244 jQuery('#scale_crop_height').removeClass('uc_alert'); 238 245 } 239 246 } … … 258 265 jQuery('#resize').click(function() { 259 266 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'); 262 269 } 263 270 }); … … 265 272 jQuery('#scale_crop').click(function() { 266 273 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'); 269 276 } 270 277 });
Note: See TracChangeset
for help on using the changeset viewer.