1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-22 15:31:29 +00:00

implement instance edit & save

This commit is contained in:
Andrew Dolgov
2011-04-20 14:11:15 +04:00
parent 16270276cf
commit 9104a3e65a
3 changed files with 94 additions and 1 deletions

View File

@@ -1810,6 +1810,30 @@ function editInstance(id, event) {
id: "instanceEditDlg",
title: __("Edit Instance"),
style: "width: 600px",
regenKey: function() {
new Ajax.Request("backend.php", {
parameters: "?op=rpc&subop=genHash",
onComplete: function(transport) {
var reply = JSON.parse(transport.responseText);
if (reply)
dijit.byId('instance_edit_key').attr('value', reply.hash);
} });
},
execute: function() {
if (this.validate()) {
// console.warn(dojo.objectToQuery(this.attr('value')));
notify_progress('Saving data...', true);
new Ajax.Request("backend.php", {
parameters: dojo.objectToQuery(this.attr('value')),
onComplete: function(transport) {
dialog.hide();
notify('');
updateInstanceList();
} });
}
},
href: query,
});