Changeset 5334
- Timestamp:
- 04/03/2014 09:32:45 PM (11 years ago)
- Location:
- trunk/src/templates/default/js
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/templates/default/js/editor.js
r5172 r5334 9 9 /* Tab from topic title */ 10 10 jQuery( '#bbp_topic_title' ).bind( 'keydown.editor-focus', function(e) { 11 if ( e.which !== 9 ) 11 if ( e.which !== 9 ) { 12 12 return; 13 } 13 14 14 15 if ( !e.ctrlKey && !e.altKey && !e.shiftKey ) { … … 30 31 /* Shift + tab from topic tags */ 31 32 jQuery( '#bbp_topic_tags' ).bind( 'keydown.editor-focus', function(e) { 32 if ( e.which !== 9 ) 33 if ( e.which !== 9 ) { 33 34 return; 35 } 34 36 35 37 if ( e.shiftKey && !e.ctrlKey && !e.altKey ) { -
trunk/src/templates/default/js/forum.js
r5324 r5334 15 15 response.content = bbpForumJS.generic_ajax_error; 16 16 } 17 alert( response.content );17 window.alert( response.content ); 18 18 } 19 19 } ); -
trunk/src/templates/default/js/reply.js
r4944 r5334 3 3 var t = this, div, reply = t.I(replyId), respond = t.I(respondId), cancel = t.I('bbp-cancel-reply-to-link'), parent = t.I('bbp_reply_to'), post = t.I('bbp_topic_id'); 4 4 5 if ( ! reply || ! respond || ! cancel || ! parent ) 5 if ( ! reply || ! respond || ! cancel || ! parent ) { 6 6 return; 7 } 7 8 8 9 t.respondId = respondId; … … 17 18 18 19 reply.parentNode.insertBefore(respond); 19 if ( post && postId ) 20 if ( post && postId ) { 20 21 post.value = postId; 22 } 21 23 parent.value = parentId; 22 24 cancel.style.display = ''; … … 25 27 var t = addReply, temp = t.I('bbp-temp-form-div'), respond = t.I(t.respondId); 26 28 27 if ( ! temp || ! respond ) 29 if ( ! temp || ! respond ) { 28 30 return; 31 } 29 32 30 33 t.I('bbp_reply_to').value = '0'; … … 34 37 this.onclick = null; 35 38 return false; 36 } 39 }; 37 40 38 41 try { t.I('bbp_reply_content').focus(); } … … 45 48 return document.getElementById(e); 46 49 } 47 } 50 }; -
trunk/src/templates/default/js/topic.js
r4549 r5334 15 15 response.content = bbpTopicJS.generic_ajax_error; 16 16 } 17 alert( response.content );17 window.alert( response.content ); 18 18 } 19 19 } );
Note: See TracChangeset
for help on using the changeset viewer.