Skip to content

Commit

Permalink
! edit all option in board permissions was not working (#3706)
Browse files Browse the repository at this point in the history
  • Loading branch information
Spuds committed Mar 24, 2023
1 parent a9956d6 commit 036d66e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions themes/default/scripts/admin.js
Expand Up @@ -7,7 +7,7 @@
* copyright: 2011 Simple Machines (http://www.simplemachines.org)
* license: BSD, See included LICENSE.TXT for terms and conditions.
*
* @version 1.1
* @version 1.1.10
*/

/**
Expand Down Expand Up @@ -1413,7 +1413,7 @@ function initEditProfileBoards()
$('.edit_all_board_profiles').on('click', function(e) {
e.preventDefault();

$('.edit_board').off('click.elkarte');
$('.edit_board').trigger('click');
});

$('.edit_board').show().on('click.elkarte', function(e) {
Expand Down Expand Up @@ -1445,14 +1445,14 @@ function initEditProfileBoards()
$target.replaceWith($select);
$select.change();

$('.edit_all_board_profiles').replaceWith($('<input type="submit" class="right_submit" />')
$('.edit_all_board_profiles').replaceWith($('<input type="submit" />')
.attr('name', 'save_changes')
.attr('value', txt_save)
);
$icon.off('click.elkarte').on('click', function(e) {
e.preventDefault();
if ($(this).hasClass('changed'))
$('input[name="save_changes"]').off('click');
$('input[name="save_changes"]').trigger('click');
});
});
}
Expand Down

0 comments on commit 036d66e

Please sign in to comment.