mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
Compare commits
1 Commits
form_depen
...
3.2.1-1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f44468b7a1 |
@@ -390,16 +390,17 @@ function LinksWidget(id, sClass, sAttCode, iInputId, sSuffix, bDuplicates, oWizH
|
|||||||
|
|
||||||
this.RegisterChange = function () {
|
this.RegisterChange = function () {
|
||||||
// Listen only used inputs
|
// Listen only used inputs
|
||||||
$('#linkedset_'+me.id+' :input[name^="attr_'+me.sAttCode+'["]').off('change').on('change', function () {
|
$('body').off('change', '#linkedset_'+me.id+' :input[name^="attr_'+me.sAttCode+'["]')
|
||||||
|
.on('change', '#linkedset_'+me.id+' :input[name^="attr_'+me.sAttCode+'["]', function () {
|
||||||
if (!($(this).hasClass('selection')))
|
if (!($(this).hasClass('selection')))
|
||||||
{
|
{
|
||||||
let oCheckbox = $(this).closest('tr').find('.selection');
|
let oCheckbox = $(this).closest('tr').find('.selection');
|
||||||
let iLink = oCheckbox.attr('data-link-id');
|
let iLink = oCheckbox.attr('data-link-id');
|
||||||
let iUniqueId = oCheckbox.attr('data-unique-id');
|
let iUniqueId = oCheckbox.attr('data-unique-id');
|
||||||
let sAttCode = $(this).closest('.attribute-edit').attr('data-attcode');
|
let sAttCode = $(this).closest('.attribute-edit').attr('data-attcode');
|
||||||
let value = $(this).val();;
|
let value = $(this).val();;
|
||||||
return me.OnValueChange(iLink, iUniqueId, sAttCode, value, this);
|
return me.OnValueChange(iLink, iUniqueId, sAttCode, value, this);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user