mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°7371 - Remembers the choice done in the popup that appears when saving public and private logs at the same time (#636)
This commit is contained in:
10
js/utils.js
10
js/utils.js
@@ -213,10 +213,14 @@ function SetUserPreference(sPreferenceCode, sPrefValue, bPersistent) {
|
||||
} catch (err) {
|
||||
sPreviousValue = undefined;
|
||||
}
|
||||
oUserPreferences[sPreferenceCode] = sPrefValue;
|
||||
if (bPersistent && (sPrefValue != sPreviousValue)) {
|
||||
ajax_request = $.post(GetAbsoluteUrlAppRoot()+'pages/ajax.render.php',
|
||||
{operation: 'set_pref', code: sPreferenceCode, value: sPrefValue}); // Make it persistent
|
||||
return $.post(GetAbsoluteUrlAppRoot()+'pages/ajax.render.php',
|
||||
{operation: 'set_pref', code: sPreferenceCode, value: sPrefValue}, function (data) {
|
||||
}).done(function() {
|
||||
oUserPreferences[sPreferenceCode] = sPrefValue;
|
||||
}); // Make it persistent
|
||||
} else {
|
||||
oUserPreferences[sPreferenceCode] = sPrefValue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user