mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
test dirty onchange
instead of blindly setting dirty, check if the filed has a different value than it originally did. https://fedorahosted.org/freeipa/ticket/1337
This commit is contained in:
committed by
Endi S. Dewata
parent
c03fab1095
commit
dbeae4e3f4
@@ -234,7 +234,7 @@ IPA.attributes_widget = function(spec) {
|
||||
click: function(){
|
||||
$('.aci-attribute', that.table).
|
||||
attr('checked', $(this).attr('checked'));
|
||||
that.set_dirty(true);
|
||||
that.set_dirty(that.test_dirty());
|
||||
}
|
||||
})
|
||||
})).append($('<th/>', {
|
||||
@@ -298,7 +298,7 @@ IPA.attributes_widget = function(spec) {
|
||||
value: value,
|
||||
'class': 'aci-attribute',
|
||||
click: function() {
|
||||
that.set_dirty(true);
|
||||
that.set_dirty(that.test_dirty());
|
||||
}
|
||||
}));
|
||||
td = $('<td/>').appendTo(aci_tr);
|
||||
@@ -335,7 +335,7 @@ IPA.attributes_widget = function(spec) {
|
||||
value: value,
|
||||
'class': 'aci-attribute',
|
||||
change: function() {
|
||||
that.set_dirty(true);
|
||||
that.set_dirty(that.test_dirty());
|
||||
}
|
||||
}));
|
||||
|
||||
|
||||
@@ -728,7 +728,7 @@ IPA.checkbox_widget = function (spec) {
|
||||
|
||||
var input = $('input[name="'+that.name+'"]', that.container);
|
||||
input.change(function() {
|
||||
that.set_dirty(true);
|
||||
that.set_dirty(that.test_dirty());
|
||||
});
|
||||
|
||||
var undo = that.get_undo();
|
||||
@@ -802,7 +802,7 @@ IPA.checkboxes_widget = function (spec) {
|
||||
|
||||
var input = $('input[name="'+that.name+'"]', that.container);
|
||||
input.change(function() {
|
||||
that.set_dirty(true);
|
||||
that.set_dirty(that.test_dirty());
|
||||
});
|
||||
|
||||
var undo = that.get_undo();
|
||||
@@ -880,7 +880,7 @@ IPA.radio_widget = function(spec) {
|
||||
|
||||
var input = $('input[name="'+that.name+'"]', that.container);
|
||||
input.change(function() {
|
||||
that.set_dirty(true);
|
||||
that.set_dirty(that.test_dirty());
|
||||
});
|
||||
|
||||
var undo = that.get_undo();
|
||||
@@ -957,7 +957,7 @@ IPA.select_widget = function(spec) {
|
||||
|
||||
that.select = $('select[name="'+that.name+'"]', that.container);
|
||||
that.select.change(function() {
|
||||
that.set_dirty(true);
|
||||
that.set_dirty(that.test_dirty());
|
||||
});
|
||||
|
||||
var undo = that.get_undo();
|
||||
@@ -1575,7 +1575,7 @@ IPA.entity_select_widget = function(spec) {
|
||||
that.entity_select = $('<select/>', {
|
||||
id: that.name + '-entity-select',
|
||||
change: function(){
|
||||
that.set_dirty(true);
|
||||
that.set_dirty(that.test_dirty());
|
||||
}
|
||||
}).appendTo(container);
|
||||
|
||||
@@ -1586,7 +1586,7 @@ IPA.entity_select_widget = function(spec) {
|
||||
style: 'display: none;',
|
||||
keyup: function(){
|
||||
populate_select();
|
||||
that.set_dirty(true);
|
||||
that.set_dirty(that.test_dirty());
|
||||
}
|
||||
}).appendTo(container);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user