Commit efd9f28a authored by Jérome Perrin's avatar Jérome Perrin

Input_viewAttachDocument: display a popup after attaching a document

parent 80ac5b77
/*global rJS, RSVP, promiseEventListener, promiseReadAsDataURL, /*global rJS, RSVP, promiseEventListener, promiseReadAsDataURL,
initGadgetMixin */ initGadgetMixin, $, setTimeout */
(function (window, rJS, RSVP, promiseEventListener, promiseReadAsDataURL, (function (window, rJS, RSVP, promiseEventListener, promiseReadAsDataURL,
initGadgetMixin) { initGadgetMixin) {
"use strict"; "use strict";
...@@ -51,7 +51,9 @@ ...@@ -51,7 +51,9 @@
"_data": JSON.stringify(data) "_data": JSON.stringify(data)
}); });
}).push(function (){ }).push(function (){
button.disabled = false; // XXX quick way to get a popup message
$.mobile.loading( 'show', { text: "File uploaded", textVisible: true, textonly: true });
setTimeout(function () { $.mobile.loading( "hide" ); button.disabled = false; }, 1000);
}); });
}) })
.declareMethod("render", function (options) { .declareMethod("render", function (options) {
......
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