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.PrefFeedStore", 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",
|
2023-10-25 09:55:09 +00:00
|
|
|
content: {op: "Pref_Feeds", method: "savefeedorder",
|
2018-08-23 06:56:34 +00:00
|
|
|
payload: newFileContentString},
|
|
|
|
error: saveFailedCallback,
|
|
|
|
load: saveCompleteCallback});
|
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|