mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°3123 : Fix create shortcuts and set preferences
This commit is contained in:
@@ -41,4 +41,27 @@ function updateDataTableSelection(listId) {
|
||||
selectionContainer.append('<input type="hidden" name="storedSelection[]" value="' + value + '">');
|
||||
}
|
||||
selectionCount.val(currentSelection.length);
|
||||
selectionCount.trigger('change');
|
||||
}
|
||||
function getMultipleSelectionParams(listId)
|
||||
{
|
||||
var oRes = {};
|
||||
|
||||
oRes.selectionMode = '';
|
||||
if ($('#'+listId+' [name=selectionMode]').length > 0)
|
||||
{
|
||||
oRes.selectionMode = $('#'+listId+' [name=selectionMode]').val();
|
||||
}
|
||||
|
||||
oRes.selectObject = [];
|
||||
$('#'+listId+' [name^=selectObject]:checked').each(function() {
|
||||
oRes.selectObject.push($(this).val());
|
||||
});
|
||||
|
||||
oRes.storedSelection = [];
|
||||
$('#'+listId+' [name^=storedSelection]').each(function() {
|
||||
oRes.storedSelection.push($(this).val());
|
||||
});
|
||||
|
||||
return oRes;
|
||||
}
|
||||
Reference in New Issue
Block a user