Changeset 26195
- Timestamp:
- 11/15/2013 04:41:51 AM (11 years ago)
- Location:
- trunk/src/wp-includes/js
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/comment-reply.js
r21592 r26195 1 2 addComment = { 1 var addComment = { 3 2 moveForm : function(commId, parentId, respondId, postId) { 4 3 var t = this, div, comm = t.I(commId), respond = t.I(respondId), cancel = t.I('cancel-comment-reply-link'), parent = t.I('comment_parent'), post = t.I('comment_post_ID'); … … 35 34 this.onclick = null; 36 35 return false; 37 } 36 }; 38 37 39 38 try { t.I('comment').focus(); } … … 46 45 return document.getElementById(e); 47 46 } 48 } 47 }; -
trunk/src/wp-includes/js/customize-base.js
r22798 r26195 130 130 }, 131 131 132 bind: function( id , callback) {132 bind: function( id ) { 133 133 this.topics = this.topics || {}; 134 134 this.topics[ id ] = this.topics[ id ] || $.Callbacks(); … … 137 137 }, 138 138 139 unbind: function( id , callback) {139 unbind: function( id ) { 140 140 if ( this.topics && this.topics[ id ] ) 141 141 this.topics[ id ].remove.apply( this.topics[ id ], slice.call( arguments, 1 ) ); … … 210 210 }, 211 211 212 bind: function( callback) {212 bind: function() { 213 213 this.callbacks.add.apply( this.callbacks, arguments ); 214 214 return this; 215 215 }, 216 216 217 unbind: function( callback) {217 unbind: function() { 218 218 this.callbacks.remove.apply( this.callbacks, arguments ); 219 219 return this; -
trunk/src/wp-includes/js/tinymce/mark_loaded_src.js
r19996 r26195 1 /* global tinyMCEPreInit, tinymce */ 1 2 (function(){ 2 3 if ( typeof tinyMCEPreInit === 'undefined' ) … … 15 16 markDone( baseurl+'/plugins/'+plugin+'/editor_plugin'+suffix+'.js' ); 16 17 markDone( baseurl+'/plugins/'+plugin+'/langs/'+lang+'.js' ); 17 markDone( baseurl+'/plugins/'+plugin+'/langs/'+lang+'_dlg.js' ) 18 markDone( baseurl+'/plugins/'+plugin+'/langs/'+lang+'_dlg.js' ); 18 19 } 19 20 }); -
trunk/src/wp-includes/js/wp-auth-check.js
r24738 r26195 1 /* global adminpage */ 1 2 // Interim login dialog 2 3 (function($){ 3 var wrap, check,next;4 var wrap, next; 4 5 5 6 function show() { … … 13 14 14 15 frame = $('<iframe id="wp-auth-check-frame" frameborder="0">').attr( 'title', noframe.text() ); 15 frame.load( function( e) {16 frame.load( function() { 16 17 var height, body; 17 18 … … 68 69 69 70 // When on the Edit Post screen, speed up heartbeat after the user logs in to quickly refresh nonces 70 if ( typeof adminpage != 'undefined' && ( adminpage == 'post-php' || adminpage == 'post-new-php' ) 71 &&typeof wp != 'undefined' && wp.heartbeat ) {71 if ( typeof adminpage != 'undefined' && ( adminpage == 'post-php' || adminpage == 'post-new-php' ) && 72 typeof wp != 'undefined' && wp.heartbeat ) { 72 73 73 74 wp.heartbeat.interval( 'fast', 1 ); … … 99 100 schedule(); 100 101 wrap = $('#wp-auth-check-wrap'); 101 wrap.find('.wp-auth-check-close').on( 'click', function( e) {102 wrap.find('.wp-auth-check-close').on( 'click', function() { 102 103 hide(); 103 104 }); -
trunk/src/wp-includes/js/wp-lists.js
r25546 r26195 1 /* global ajaxurl, wpAjax */ 1 2 (function($) { 2 3 var fs = {add:'ajaxAdd',del:'ajaxDel',dim:'ajaxDim',process:'process',recolor:'recolor'}, wpList; -
trunk/src/wp-includes/js/wp-pointer.js
r22798 r26195 1 /* global wpPointerL10n */ 1 2 /** 2 3 * Pointer jQuery widget. … … 6 7 zindex = 9999; 7 8 8 $.widget( "wp.pointer", {9 $.widget('wp.pointer', { 9 10 options: { 10 11 pointerClass: 'wp-pointer', 11 12 pointerWidth: 320, 12 content: function( respond, event, t) {13 content: function() { 13 14 return $(this).text(); 14 15 }, … … 61 62 62 63 // Handle document transfer 63 if ( key === "document"&& value !== o.document ) {64 if ( key === 'document' && value !== o.document ) { 64 65 tip.detach().appendTo( value.body ); 65 66 66 67 // Handle class change 67 } else if ( key === "pointerClass") {68 } else if ( key === 'pointerClass' ) { 68 69 tip.removeClass( o.pointerClass ).addClass( value ); 69 70 } … … 73 74 74 75 // Reposition automatically 75 if ( key === "position") {76 if ( key === 'position' ) { 76 77 this.reposition(); 77 78 78 79 // Update content automatically if pointer is open 79 } else if ( key === "content"&& this.active ) {80 } else if ( key === 'content' && this.active ) { 80 81 this.update(); 81 82 } … … 102 103 dfd.done( function( content ) { 103 104 self._update( event, content ); 104 }) 105 }); 105 106 106 107 // Either o.content is a string... … … 236 237 this.active = true; 237 238 238 this._trigger( "open", event, this._handoff() );239 240 this._trigger( "show", event, this._handoff({239 this._trigger( 'open', event, this._handoff() ); 240 241 this._trigger( 'show', event, this._handoff({ 241 242 opened: function() { 242 self._trigger( "opened", event, self._handoff() );243 self._trigger( 'opened', event, self._handoff() ); 243 244 } 244 245 })); … … 252 253 this.active = false; 253 254 254 this._trigger( "close", event, this._handoff() );255 this._trigger( "hide", event, this._handoff({255 this._trigger( 'close', event, this._handoff() ); 256 this._trigger( 'hide', event, this._handoff({ 256 257 closed: function() { 257 self._trigger( "closed", event, self._handoff() );258 self._trigger( 'closed', event, self._handoff() ); 258 259 } 259 260 })); 260 261 }, 261 262 262 sendToTop: function( event) {263 sendToTop: function() { 263 264 if ( this.active ) 264 265 this.pointer.css( 'z-index', zindex++ );
Note: See TracChangeset
for help on using the changeset viewer.