CC-4793: System -> User: Sometimes the user type's tips turns out "undefined"
-fixed
This commit is contained in:
parent
1c0d8abd4c
commit
224bcf0c2b
|
@ -99,9 +99,7 @@ function sizeFormElements() {
|
||||||
$("dd[id$='element']").addClass('user-form-element');
|
$("dd[id$='element']").addClass('user-form-element');
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
function assignUserRightsToUserTypes() {
|
||||||
populateUserTable();
|
|
||||||
|
|
||||||
//assign user-rights and id to each user type option so we can
|
//assign user-rights and id to each user type option so we can
|
||||||
//display user rights for each with tipsy tooltip
|
//display user rights for each with tipsy tooltip
|
||||||
$.each($('#type').children(), function(i, opt) {
|
$.each($('#type').children(), function(i, opt) {
|
||||||
|
@ -159,6 +157,10 @@ $(document).ready(function() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
$(document).ready(function() {
|
||||||
|
populateUserTable();
|
||||||
|
assignUserRightsToUserTypes();
|
||||||
|
|
||||||
$('#type').live("change", function(){
|
$('#type').live("change", function(){
|
||||||
//when the title changes on live tipsy tooltips the changes take
|
//when the title changes on live tipsy tooltips the changes take
|
||||||
|
@ -192,6 +194,7 @@ $(document).ready(function() {
|
||||||
if (json.valid === "true") {
|
if (json.valid === "true") {
|
||||||
$('#content').empty().append(json.html);
|
$('#content').empty().append(json.html);
|
||||||
populateUserTable();
|
populateUserTable();
|
||||||
|
assignUserRightsToUserTypes();
|
||||||
} else {
|
} else {
|
||||||
//if form is invalid we only need to redraw the form
|
//if form is invalid we only need to redraw the form
|
||||||
$('#user_form').empty().append($(json.html).find('#user_form').children());
|
$('#user_form').empty().append($(json.html).find('#user_form').children());
|
||||||
|
|
Loading…
Reference in New Issue