Changeset 7011
- Timestamp:
- 12/10/2019 02:50:08 PM (6 years ago)
- File:
-
- 1 edited
-
branches/2.6/src/templates/default/js/reply.js (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/src/templates/default/js/reply.js
r6979 r7011 63 63 */ 64 64 cancel.onclick = function () { 65 var t= addReply,66 temp = t.getElement( 'bbp-temp-form-div' ),67 respond = t.getElement( t.respondId );68 69 t.removeEditor();65 var r = addReply, 66 temp = r.getElement( 'bbp-temp-form-div' ), 67 respond = r.getElement( r.respondId ); 68 69 r.removeEditor(); 70 70 71 71 if ( ! temp || ! respond ) { … … 73 73 } 74 74 75 t.getElement( 'bbp_reply_to' ).value = '0';75 r.getElement( 'bbp_reply_to' ).value = '0'; 76 76 77 77 temp.parentNode.insertBefore( respond, temp ); … … 81 81 this.onclick = null; 82 82 83 t.addEditor();83 r.addEditor(); 84 84 }; 85 85 86 t.scrollToForm( t);86 t.scrollToForm(); 87 87 88 88 return false; … … 93 93 * 94 94 * @since 2.6.2 95 * @param {HTMLElement} t The HTML element.96 95 * @return {void} 97 96 */ 98 scrollToForm: function( t) {97 scrollToForm: function() { 99 98 100 99 /* Get initial variables to start computing boundaries */ 101 var form = t.getElement( 'new-post' ), 100 var t = this, 101 form = t.getElement( 'new-post' ), 102 102 elemRect = form.getBoundingClientRect(), 103 103 position = (window.pageYOffset || document.scrollTop) - (document.clientTop || 0), … … 185 185 186 186 /* Bail to avoid error */ 187 if ( typeof ( tinyMCE) === 'undefined' ) {187 if ( typeof ( tinyMCE ) === 'undefined' ) { 188 188 return; 189 189 } … … 209 209 210 210 /* Bail to avoid error */ 211 if ( typeof ( tinyMCE) === 'undefined' ) {211 if ( typeof ( tinyMCE ) === 'undefined' ) { 212 212 return; 213 213 }
Note: See TracChangeset
for help on using the changeset viewer.