mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 11:28:55 +00:00
[ticket/15467] Fix JS for permissions setting
PHPBB3-15467
This commit is contained in:
parent
ae62bc4642
commit
4d640555ef
2 changed files with 12 additions and 0 deletions
|
@ -9,6 +9,8 @@
|
||||||
|
|
||||||
var role_options = new Array();
|
var role_options = new Array();
|
||||||
|
|
||||||
|
var no_role_assigned = "{LA_NO_ROLE_ASSIGNED}";
|
||||||
|
|
||||||
<!-- IF S_ROLE_JS_ARRAY -->
|
<!-- IF S_ROLE_JS_ARRAY -->
|
||||||
{S_ROLE_JS_ARRAY}
|
{S_ROLE_JS_ARRAY}
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
|
@ -279,6 +279,16 @@ function reset_role(id) {
|
||||||
}
|
}
|
||||||
|
|
||||||
t.options[0].selected = true;
|
t.options[0].selected = true;
|
||||||
|
|
||||||
|
(function($)// Avoid conflicts with other libraries
|
||||||
|
{
|
||||||
|
var parent = $(t).parent();
|
||||||
|
parent.find("span[title=Roles]")[0].innerText = no_role_assigned;
|
||||||
|
|
||||||
|
// Find proper role value
|
||||||
|
var roleInput = parent.find('input[name^=role][data-name]');
|
||||||
|
roleInput.val(0);
|
||||||
|
})(jQuery); // Avoid conflicts with other libraries
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue