mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +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
@ -621,7 +621,7 @@ $(document).ready(function(){
|
|||||||
highlight_first: adminCommentsL10n.hotkeys_highlight_first,
|
highlight_first: adminCommentsL10n.hotkeys_highlight_first,
|
||||||
highlight_last: adminCommentsL10n.hotkeys_highlight_last,
|
highlight_last: adminCommentsL10n.hotkeys_highlight_last,
|
||||||
prev_page_link_cb: make_hotkeys_redirect('prev'),
|
prev_page_link_cb: make_hotkeys_redirect('prev'),
|
||||||
next_page_link_cb: make_hotkeys_redirect('next'),
|
next_page_link_cb: make_hotkeys_redirect('next'),
|
||||||
hotkeys_opts: {
|
hotkeys_opts: {
|
||||||
disableInInput: true,
|
disableInInput: true,
|
||||||
type: 'keypress',
|
type: 'keypress',
|
||||||
|
@ -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
|
||||||
*
|
*
|
||||||
|
@ -1,19 +1,22 @@
|
|||||||
{
|
{
|
||||||
"globals": {
|
"globals": {
|
||||||
"asyncTest" : false,
|
"asyncTest" : false,
|
||||||
"deepEqual" : false,
|
"deepEqual" : false,
|
||||||
"equal" : false,
|
"equal" : false,
|
||||||
"expect" : false,
|
"expect" : false,
|
||||||
"module" : false,
|
"module" : false,
|
||||||
"notDeepEqual" : false,
|
"notDeepEqual" : false,
|
||||||
"notEqual" : false,
|
"notEqual" : false,
|
||||||
"notStrictEqual" : false,
|
"notStrictEqual" : false,
|
||||||
"ok" : false,
|
"ok" : false,
|
||||||
"QUnit" : false,
|
"QUnit" : false,
|
||||||
"raises" : false,
|
"raises" : false,
|
||||||
"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