mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 00:37:42 +02:00
[ticket/10270] Removed all the inline language and HTML from the JS.
PHPBB3-10270
This commit is contained in:
committed by
Igor Wiedler
parent
818d989168
commit
0e55b2393d
@@ -10,18 +10,6 @@ phpbb.add_ajax_callback('post_delete', function(el) {
|
||||
$(this).remove();
|
||||
});
|
||||
}
|
||||
}).add_ajax_callback('bookmark', function(el, res) {
|
||||
var text = (res.MESSAGE_TEXT.indexOf('Removed') === -1);
|
||||
text = (text) ? 'Remove from bookmarks' : 'Bookmark topic';
|
||||
$(el).text(el.title = text);
|
||||
}).add_ajax_callback('topic_subscribe', function(el) {
|
||||
$(el).text(el.title = 'Unsubscribe topic');
|
||||
}).add_ajax_callback('topic_unsubscribe', function(el) {
|
||||
$(el).text(el.title = 'Subscribe forum');
|
||||
}).add_ajax_callback('forum_subscribe', function(el) {
|
||||
$(el).text(el.title = 'Unsubscribe topic');
|
||||
}).add_ajax_callback('forum_unsubscribe', function(el) {
|
||||
$(el).text(el.title = 'Subscribe forum');
|
||||
}).add_ajax_callback('post_approve', function(el, res, act) {
|
||||
$(el).parents((act === 'approve') ? '.rules' : '.post').fadeOut(function() {
|
||||
$(this).remove();
|
||||
|
Reference in New Issue
Block a user