mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 21:57:00 +02:00
handle change for programmatic input change badging
This commit is contained in:
parent
4c10dcba96
commit
9af7579b85
1 changed files with 2 additions and 2 deletions
|
@ -263,7 +263,7 @@ $(document).ready(function(){
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#' + Settings.FORM_ID).on('input propertychange', '.' + Settings.TRIGGER_CHANGE_CLASS , function(e){
|
$('#' + Settings.FORM_ID).on('change input propertychange', '.' + Settings.TRIGGER_CHANGE_CLASS , function(e){
|
||||||
// this input was changed, add the changed data attribute to it
|
// this input was changed, add the changed data attribute to it
|
||||||
$(this).attr('data-changed', true);
|
$(this).attr('data-changed', true);
|
||||||
|
|
||||||
|
@ -838,7 +838,7 @@ function addTableRow(row) {
|
||||||
var keyInput = row.children(".key").children("input");
|
var keyInput = row.children(".key").children("input");
|
||||||
|
|
||||||
// whenever the keyInput changes, re-badge for differences
|
// whenever the keyInput changes, re-badge for differences
|
||||||
keyInput.on('input propertychange', function(e){
|
keyInput.on('change input propertychange', function(e){
|
||||||
// update siblings in the row to have the correct name
|
// update siblings in the row to have the correct name
|
||||||
var currentKey = $(this).val();
|
var currentKey = $(this).val();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue