2020-06-04 20:27:22 +00:00
|
|
|
/* global define, dojo */
|
|
|
|
|
2018-08-23 06:56:34 +00:00
|
|
|
define(["dojo/_base/declare", "dojo/data/ItemFileWriteStore"], function (declare) {
|
|
|
|
|
|
|
|
return declare("fox.PrefFilterStore", dojo.data.ItemFileWriteStore, {
|
|
|
|
|
2020-06-04 20:27:22 +00:00
|
|
|
_saveEverything: function (saveCompleteCallback, saveFailedCallback, newFileContentString) {
|
2018-08-23 06:56:34 +00:00
|
|
|
|
|
|
|
dojo.xhrPost({
|
|
|
|
url: "backend.php",
|
|
|
|
content: {
|
2023-10-25 09:55:09 +00:00
|
|
|
op: "Pref_Filters", method: "savefilterorder",
|
2018-08-23 06:56:34 +00:00
|
|
|
payload: newFileContentString
|
|
|
|
},
|
|
|
|
error: saveFailedCallback,
|
|
|
|
load: saveCompleteCallback
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|