Permalink
Browse files

Fix Firefox/Windows drop to upload bug

  • Loading branch information...
1 parent 009b53e commit d8958038cf4de57d6225c7224b53a31936812504 @PeterUpfold PeterUpfold committed Apr 9, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 total-slider/js/interface.js
  2. +4 −4 total-slider/total-slider.php
@@ -391,7 +391,7 @@ jQuery(document).ready(function() {
jQuery('#edit-slide-image-upload').click(function () {
var myTop = jQuery(this).offset();
- tb_show(_total_slider_L10n.uploadSlideBgImage, 'media-upload.php?total-slider-uploader=bgimage&type=image&TB_iframe=true&height=400&width=600');
+ tb_show(_total_slider_L10n.uploadSlideBgImage, 'media-upload.php?total-slider-uploader=bgimage&type=image&post_id=0&TB_iframe=true&height=400&width=600');
return false;
@@ -856,7 +856,7 @@ public function printSlideGroupsPage()
</script>
<div class="wrap">
- <div id="icon-vpm-slides" class="icon32"><br /></div><h2><?php _e('Slide Groups', 'total_slider');?> <a href="#" id="new-slide-group-button" class="add-new-h2"><?php _e('Add New', 'total_slider');?></a></h2>
+ <div id="icon-total-slides" class="icon32"><br /></div><h2><?php _e('Slide Groups', 'total_slider');?> <a href="#" id="new-slide-group-button" class="add-new-h2"><?php _e('Add New', 'total_slider');?></a></h2>
<noscript>
<h3><?php _e('Sorry, this interface requires JavaScript to function.', 'total_slider');?></h3>
@@ -969,7 +969,7 @@ public function printSlidesPage() {
<div class="wrap">
- <div id="icon-vpm-slides" class="icon32"><br /></div>
+ <div id="icon-total-slides" class="icon32"><br /></div>
<h2><?php printf(__('‘%s’ Slides', 'total_slider'), esc_html($slideGroup->name));?>
<a href="#" id="new-slide-button" class="add-new-h2"><?php _e('Add New', 'total_slider');?></a></h2>
@@ -1087,7 +1087,7 @@ public function printSettingsPage()
}
?><div class="wrap">
- <div id="icon-vpm-slides" class="icon32" style="background:transparent url(<?php echo plugin_dir_url( __FILE__ );?>img/total-slider-icon-32.png?ver=20120229) no-repeat;"><br /></div><h2><?php _e('Settings', 'total_slider');?></h2>
+ <div id="icon-total-slides" class="icon32" style="background:transparent url(<?php echo plugin_dir_url( __FILE__ );?>img/total-slider-icon-32.png?ver=20120229) no-repeat;"><br /></div><h2><?php _e('Settings', 'total_slider');?></h2>
<?php if ($success): ?>
@@ -1208,7 +1208,7 @@ public function printUploaderJavaScript()
//?? also #media-items .image-size
- jQuery('.imgedit-response').append('<p style="text-align:center;font-size:12px;color:#909090;"<?php printf(__('Choose ‘Edit Image’ and crop to %d×%d for best results.', 'total_slider'), $crop['width'], $crop['height']);?></p>');
+ jQuery('.imgedit-response').append('<p style="text-align:center;font-size:12px;color:#909090;"<?php printf(__('Choose ‘Edit Image’ and crop to %d×%d for best results.', 'total_slider'), $crop['crop_width'], $crop['crop_height']);?></p>');
// rename the main action button
jQuery('.savesend .button').each(function() {

0 comments on commit d895803

Please sign in to comment.