Added advice when a primary group will be selected when is currentl a secondary group
Former-commit-id: ca23bc1f24b901c2300385ee6d3468dc5059d51d
This commit is contained in:
parent
a792128906
commit
7a1a682248
|
@ -999,6 +999,19 @@ ui_require_jquery_file('bgiframe');
|
|||
}
|
||||
|
||||
$(document).ready (function() {
|
||||
|
||||
var previous_primary_group_select;
|
||||
$("#grupo").on('focus', function () {
|
||||
previous_primary_group_select = this.value;
|
||||
}).change(function() {
|
||||
if ($("#secondary_groups_selected option[value="+$("#grupo").val()+"]").length) {
|
||||
alert("<?php echo __('Secondary group cannot be primary too.'); ?>");
|
||||
$("#grupo").val(previous_primary_group_select);
|
||||
} else {
|
||||
previous_primary_group_select = this.value;
|
||||
}
|
||||
});
|
||||
|
||||
$("select#id_os").pandoraSelectOS ();
|
||||
|
||||
var checked = $("#checkbox-cascade_protection").is(":checked");
|
||||
|
|
Loading…
Reference in New Issue