mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
Various JSHint fixes. see #26446.
git-svn-id: https://develop.svn.wordpress.org/trunk@27131 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2238c7fb7f
commit
522670cef2
@ -1,4 +1,4 @@
|
|||||||
/* global tinymce, QTags, tb_remove */
|
/* global tinymce, QTags */
|
||||||
// send html to the post editor
|
// send html to the post editor
|
||||||
|
|
||||||
var wpActiveEditor, send_to_editor;
|
var wpActiveEditor, send_to_editor;
|
||||||
|
@ -370,7 +370,7 @@ $(document).on( 'heartbeat-send.refresh-lock', function( e, data ) {
|
|||||||
}(jQuery));
|
}(jQuery));
|
||||||
|
|
||||||
jQuery(document).ready( function($) {
|
jQuery(document).ready( function($) {
|
||||||
var stamp, visibility, $submitButtons, updateVisibility, updateText,
|
var stamp, visibility, $submitButtons, updateVisibility, updateText, $content,
|
||||||
sticky = '',
|
sticky = '',
|
||||||
last = 0,
|
last = 0,
|
||||||
co = $('#content'),
|
co = $('#content'),
|
||||||
@ -1066,7 +1066,7 @@ jQuery(document).ready( function($) {
|
|||||||
|
|
||||||
if ( ! ( 'ontouchstart' in window ) ) {
|
if ( ! ( 'ontouchstart' in window ) ) {
|
||||||
// When scrolling with mouse wheel or trackpad inside the Text editor, don't scroll the whole window
|
// When scrolling with mouse wheel or trackpad inside the Text editor, don't scroll the whole window
|
||||||
var $content = $('#content').on( 'onwheel' in $document[0] ? 'wheel.text-editor-scroll' : 'mousewheel.text-editor-scroll', function( event ) {
|
$content = $('#content').on( 'onwheel' in $document[0] ? 'wheel.text-editor-scroll' : 'mousewheel.text-editor-scroll', function( event ) {
|
||||||
var delta, origEvent = event.originalEvent;
|
var delta, origEvent = event.originalEvent;
|
||||||
|
|
||||||
if ( wp.editor && wp.editor.fullscreen.settings.visible ) {
|
if ( wp.editor && wp.editor.fullscreen.settings.visible ) {
|
||||||
|
@ -910,7 +910,7 @@
|
|||||||
* @returns {wp.media.view.MediaFrame}
|
* @returns {wp.media.view.MediaFrame}
|
||||||
*/
|
*/
|
||||||
open: function( id, options ) {
|
open: function( id, options ) {
|
||||||
var workflow, editor;
|
var workflow;
|
||||||
|
|
||||||
options = options || {};
|
options = options || {};
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* global adminpage, wpActiveEditor, quicktagsL10n, wpLink, fullscreen, prompt */
|
/* global adminpage, wpActiveEditor, quicktagsL10n, wpLink, prompt */
|
||||||
/*
|
/*
|
||||||
* Quicktags
|
* Quicktags
|
||||||
*
|
*
|
||||||
|
@ -14,6 +14,9 @@
|
|||||||
"start" : false,
|
"start" : false,
|
||||||
"stop" : false,
|
"stop" : false,
|
||||||
"strictEqual" : false,
|
"strictEqual" : false,
|
||||||
"test" : false
|
"test" : false,
|
||||||
|
|
||||||
|
"_" : false,
|
||||||
|
"jQuery" : false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user