WordPress.org

Make WordPress Core

Changeset 26196


Ignore:
Timestamp:
11/15/2013 04:52:12 AM (8 years ago)
Author:
nacin
Message:

Fix JSHint errors in media-upload.js.

props iblamefish.
fixes #26023.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/media-upload.js

    r23055 r26196  
     1/* global tinymce, QTags, tb_remove */
    12// send html to the post editor
    23
    3 var wpActiveEditor;
     4var wpActiveEditor, send_to_editor;
    45
    5 function send_to_editor(h) {
     6send_to_editor = function(h) {
    67    var ed, mce = typeof(tinymce) != 'undefined', qt = typeof(QTags) != 'undefined';
    78
     
    4344    }
    4445
    45     try{tb_remove();}catch(e){};
    46 }
     46    try{tb_remove();}catch(e){}
     47};
    4748
    4849// thickbox settings
     
    6162            if ( typeof document.body.style.maxWidth != 'undefined' )
    6263                tbWindow.css({'top': 20 + adminbar_height + 'px','margin-top':'0'});
    63         };
     64        }
    6465
    6566        return $('a.thickbox').each( function() {
Note: See TracChangeset for help on using the changeset viewer.