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: {
|
|
|
|
op: "pref-filters", method: "savefilterorder",
|
|
|
|
payload: newFileContentString
|
|
|
|
},
|
|
|
|
error: saveFailedCallback,
|
|
|
|
load: saveCompleteCallback
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|