You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
496 B
JavaScript
22 lines
496 B
JavaScript
/* global define, dojo */
|
|
|
|
define(["dojo/_base/declare", "dojo/data/ItemFileWriteStore"], function (declare) {
|
|
|
|
return declare("fox.PrefFeedStore", dojo.data.ItemFileWriteStore, {
|
|
|
|
_saveEverything: function(saveCompleteCallback, saveFailedCallback, newFileContentString) {
|
|
|
|
dojo.xhrPost({
|
|
url: "backend.php",
|
|
content: {op: "pref-feeds", method: "savefeedorder",
|
|
payload: newFileContentString},
|
|
error: saveFailedCallback,
|
|
load: saveCompleteCallback});
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|