Make WordPress Core

Ticket #22975: 22975.browser.patch

File 22975.browser.patch, 1.9 KB (added by ocean90, 10 years ago)
  • wp-includes/js/admin-bar.js

     
    124124
    125125                        var id = $(this).attr('href');
    126126
    127                         if ( $.browser.webkit && id && id.charAt(0) == '#' ) {
     127                        var ua = navigator.userAgent.toLowerCase();
     128                        if ( ua.indexOf('applewebkit') != -1 && id && id.charAt(0) == '#' ) {
    128129                                setTimeout(function () {
    129130                                        $(id).focus();
    130131                                }, 100);
  • wp-includes/js/autosave.js

     
    8787                 * Workaround for WebKit bug preventing a form submitting twice to the same action.
    8888                 * https://bugs.webkit.org/show_bug.cgi?id=28633
    8989                 */
    90                 if ( $.browser.safari ) {
     90                var ua = navigator.userAgent.toLowerCase();
     91                if ( ua.indexOf('safari') != -1 && ua.indexOf('chrome') == -1 ) {
    9192                        $('form#post').attr('action', function(index, value) {
    9293                                return value + '?t=' + new Date().getTime();
    9394                        });
  • wp-includes/js/thickbox/thickbox.js

     
    230230                                        jQuery("#TB_window").css({'visibility':'visible'});
    231231                                }else if(url.indexOf('TB_iframe') != -1){
    232232                                        tb_position();
    233                                         if(jQuery.browser.safari){//safari needs help because it will not fire iframe onload
    234                                                 jQuery("#TB_load").remove();
    235                                                 jQuery("#TB_window").css({'visibility':'visible'});
    236                                         }
     233                                        jQuery("#TB_load").remove();
     234                                        jQuery("#TB_window").css({'visibility':'visible'});
    237235                                }else{
    238236                                        jQuery("#TB_ajaxContent").load(url += "&random=" + (new Date().getTime()),function(){//to do a post change this load method
    239237                                                tb_position();