mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[feature/ajax] Remove not working module enable/disable ajax code
PHPBB3-10270
This commit is contained in:
@@ -89,7 +89,9 @@ phpbb.add_ajax_callback('forum_up', function() {
|
||||
phpbb.add_ajax_callback('activate_deactivate', function(res) {
|
||||
var el = $(this),
|
||||
new_href = el.attr('href');
|
||||
|
||||
el.text(res.text);
|
||||
|
||||
if (new_href.indexOf('deactivate') !== -1)
|
||||
{
|
||||
new_href = new_href.replace('deactivate', 'activate')
|
||||
@@ -98,6 +100,7 @@ phpbb.add_ajax_callback('activate_deactivate', function(res) {
|
||||
{
|
||||
new_href = new_href.replace('activate', 'deactivate')
|
||||
}
|
||||
|
||||
el.attr('href', new_href);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user