Plugin Directory

Changeset 604041


Ignore:
Timestamp:
09/26/2012 08:09:45 AM (13 years ago)
Author:
attosoft
Message:

NEW: Temporary workaround for small screen. ThickBox does nothing on small screen such as iPhone and Android. Thereby the link will be opened normally.

Location:
auto-thickbox-plus/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • auto-thickbox-plus/trunk/readme.txt

    r602914 r604041  
    276276
    277277= Latest Version =
     278* NEW: Temporary workaround for small screen. ThickBox does nothing on small screen such as iPhone and Android. Thereby the link will be opened normally.
    278279* FIXED: Gallery images cannot be displayed in gallery style with [Cleaner Gallery](http://wordpress.org/extend/plugins/cleaner-gallery/)
    279280
  • auto-thickbox-plus/trunk/thickbox.js

    r585658 r604041  
    6464
    6565function tb_click(){
     66    var SMALL_WIDTH = 480;
     67    var SMALL_HEIGHT = 480;
     68    var pageSize = tb_getPageSize();
     69    if (pageSize[0] <= SMALL_WIDTH || pageSize[1] <= SMALL_HEIGHT) {
     70        return true; // do nothing (i.e. the link will be opened normally)
     71    }
     72   
    6673    if (document.getElementById("TB_window") !== null) {
    6774        jQuery(document).unbind('.thickbox');
Note: See TracChangeset for help on using the changeset viewer.