updated by GasGit automation
This commit is contained in:
parent
aeee32fc17
commit
04dfe20a6a
1 changed files with 37 additions and 0 deletions
37
scripts/Client.js
Normal file
37
scripts/Client.js
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
/**
|
||||||
|
* client stuff that's specific to the type server
|
||||||
|
*/
|
||||||
|
var Client = (function(client) {
|
||||||
|
|
||||||
|
client.getData = function () {
|
||||||
|
|
||||||
|
google.script.run
|
||||||
|
.withFailureHandler(function(error) {
|
||||||
|
App.showNotification ("data retrieval error", error);
|
||||||
|
|
||||||
|
})
|
||||||
|
.withSuccessHandler(function(result){
|
||||||
|
|
||||||
|
if(result.data) {
|
||||||
|
Process.syncResult (result);
|
||||||
|
}
|
||||||
|
Process.startPolling();
|
||||||
|
})
|
||||||
|
.getData(Process.control.result.checksum, Utils.el("input-data-type-selection").checked);
|
||||||
|
};
|
||||||
|
|
||||||
|
client.startPicker = function () {
|
||||||
|
|
||||||
|
google.script.run
|
||||||
|
.withFailureHandler(function(error) {
|
||||||
|
App.showNotification ("Failed to save", error);
|
||||||
|
})
|
||||||
|
.withSuccessHandler(function (result) {
|
||||||
|
})
|
||||||
|
.startPicker(Process.control.code.svg.value);
|
||||||
|
}
|
||||||
|
|
||||||
|
return client;
|
||||||
|
|
||||||
|
})(Client || {});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue