mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Refactored permission target section.
The permission target section has been modified to use widgets to create the target selection and handle multiple fields. Ticket #2098
This commit is contained in:
committed by
Adam Young
parent
0f34e0bf82
commit
d6d24be289
@@ -66,6 +66,7 @@ IPA.widget = function(spec) {
|
||||
that.valid = true;
|
||||
|
||||
that.dirty_changed = IPA.observer();
|
||||
that.value_changed = IPA.observer();
|
||||
|
||||
var init = function() {
|
||||
if (!that.metadata && that.entity) {
|
||||
@@ -820,7 +821,6 @@ IPA.checkbox_widget = function (spec) {
|
||||
|
||||
// default value
|
||||
that.checked = spec.checked || false;
|
||||
that.value_changed = IPA.observer();
|
||||
|
||||
that.create = function(container) {
|
||||
|
||||
@@ -1109,6 +1109,7 @@ IPA.select_widget = function(spec) {
|
||||
that.select = $('select[name="'+that.name+'"]', that.container);
|
||||
that.select.change(function() {
|
||||
that.set_dirty(that.test_dirty());
|
||||
that.value_changed.notify(that.save(), that);
|
||||
});
|
||||
|
||||
that.create_error_link(container);
|
||||
@@ -1141,7 +1142,7 @@ IPA.select_widget = function(spec) {
|
||||
};
|
||||
|
||||
that.clear = function() {
|
||||
that.empty();
|
||||
$('option', that.select).attr('selected', '');
|
||||
};
|
||||
|
||||
// methods that should be invoked by subclasses
|
||||
|
Reference in New Issue
Block a user