Plugin Directory

Changeset 839546


Ignore:
Timestamp:
01/16/2014 09:25:47 AM (12 years ago)
Author:
mihaivalentin
Message:

0.27 - Image Pro is now compatible with Internet Explorer 10 and Internet Explorer 11 as well. Also, when dragging an image from the "Available images" to the post editor, the "Selected image" options panel is automatically expanded in the right

Location:
image-pro-wordpress-image-media-management-and-resizing-done-right/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • image-pro-wordpress-image-media-management-and-resizing-done-right/trunk/imagepro.php

    r830558 r839546  
    55Description: WordPress media & images management done right!
    66Author: Mihai Valentin
    7 Version: 0.26
     7Version: 0.27
    88Author URI: http://www.mihaivalentin.com/
    99*/
  • image-pro-wordpress-image-media-management-and-resizing-done-right/trunk/readme.txt

    r830558 r839546  
    55Requires at least: 3.0.0
    66Tested up to: 3.8
    7 Stable tag: 0.26
     7Stable tag: 0.27
    88
    99Upload, resize, add, change images instantly. Manage your media collection with ease and use it for any post or page. A new way of managing content!
     
    1111== Description ==
    1212
    13 First thing first: A video is worth 1000 words. Check out (2 minutes):
     13Check out the 2 minute video presentation of this plugin:
    1414http://www.mihaivalentin.com/image-pro-wordpress-image-management/
    1515
    16 Goal of this plugin: Simplify the WordPress upload and image insert process as much as possible.
     16Image Pro simplifies the WordPress image upload, resize and management.
    1717
    1818Using ImagePro, you can:
     
    3232- Apache 2.2.1.4
    3333- WordPress 3.2.1 (should work on any WordPress >= 3.0)
    34 - Firefox >= 5 or Chrome >= 20
     34- Firefox >= 5 or Chrome >= 20 or Internet Explorer >= 10
    3535
    3636Installation steps:
     
    6363
    6464== Changelog ==
     65
     66= 0.27 =
     67* Image Pro is now compatible with Internet Explorer 10 and Internet Explorer 11 as well. Also, when dragging an image from the "Available images" to the post editor, the "Selected image" options panel is automatically expanded in the right
    6568
    6669= 0.26 =
  • image-pro-wordpress-image-media-management-and-resizing-done-right/trunk/src/js/editor.js

    r829869 r839546  
    11/* Folder namespace */
    22impro.editor = {};
     3
     4impro.editor.minie10 = navigator.userAgent.indexOf('MSIE 10') > 0 || (navigator.userAgent.indexOf('Trident') > 0 && /rv:[0-9][0-9]/.test(navigator.userAgent));
    35
    46/* init the editor support */
     
    98100                    jQuery(this).attr('width', thumb_w).attr('data-mce-width', thumb_w).attr('_mce_width', thumb_w).width(thumb_w);
    99101                    jQuery(this).attr('height', thumb_h).attr('data-mce-height', thumb_h).attr('_mce_height', thumb_h).height(thumb_h);
    100                 }           
     102
     103                    /* open the editor, for the last one
     104                    in theory, it should be JUST one, but if the user is fast enough
     105                    to drag more, we should only open the editor for one, in order
     106                    not to slow down the UI
     107                    we open the editor by simulating a mouseup on the image */
     108                    if (thumbs.length - 1 === i) {
     109                        var outerThis = this;
     110                        setTimeout(function() {
     111                            jQuery(outerThis).trigger(impro.editor.minie10 ? 'mousedown' : 'click');
     112                        }, 100);
     113                    }
     114                }
    101115            });
    102116        }
     
    104118       
    105119    /* set the click event on body, then limit by images */
    106     body.bind('click', function(ev) {
     120    body.bind(impro.editor.minie10 ? 'mousedown' : 'click', function(ev) {
    107121        var target = jQuery(ev.target);
    108122        /* only process image clicks */
     
    111125        } else {
    112126            jQuery('#impro_editor_box').addClass('closed');
    113         }       
     127        }
    114128        return true;
    115129    });
  • image-pro-wordpress-image-media-management-and-resizing-done-right/trunk/src/requirements.php

    r593515 r839546  
    1212    public static function isBrowserSupported() {
    1313        $ua = $_SERVER['HTTP_USER_AGENT'];
    14        
     14
     15        // check for Firefox and Webkit (Chrome, Safari etc)
    1516        $compatible = stripos($ua, "firefox") > 0 || stripos($ua, "webkit") > 0;
     17
     18        // if not compatible then check for IE >= 10
     19        if (!$compatible) {
     20            // if it is ie 10
     21            if (stripos($ua, "msie 10") > 0) {
     22                $compatible = true;
     23            }
     24            // if it is >= ie 11, where the user agent string has changed
     25            // http://msdn.microsoft.com/library/ms537503.aspx
     26            if (stripos($ua, "trident") > 0 && preg_match('/rv:[0-9][0-9]/i', $ua)) {
     27                $compatible = true;
     28            }
     29        }
    1630
    1731        return $compatible;
Note: See TracChangeset for help on using the changeset viewer.