Commit 1304a9ed authored by Jérome Perrin's avatar Jérome Perrin

Debug JSON: display save confirmation

parent 3c907ff2
/*global rJS, promiseEventListener, initGadgetMixin, RSVP, CodeMirror */
/*global rJS, promiseEventListener, initGadgetMixin, RSVP, CodeMirror, setTimeout, $ */
(function (window, rJS, promiseEventListener, initGadgetMixin, RSVP, CodeMirror) {
"use strict";
......@@ -29,6 +29,10 @@
"_id": gadget.props.jio_key,
"_attachment": "body.json",
"_data": gadget.props.codemirror.getValue()
}).push(function (){
// XXX quick way to get a popup message
$.mobile.loading( 'show', { text: "Configuration saved", textVisible: true, textonly: true });
setTimeout(function () { $.mobile.loading( "hide" ); }, 1000);
});
});
})
......@@ -57,6 +61,10 @@
"_id": gadget.props.jio_key,
"_attachment": "body.json",
"_data": instance.getValue()
}).push(function (){
// XXX quick way to get a popup message
$.mobile.loading( 'show', { text: "Configuration saved", textVisible: true, textonly: true });
setTimeout(function () { $.mobile.loading( "hide" ); }, 1000);
});
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment