X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fupdater%2Fupdater.js;h=ae349f7c054b824888acef02abb1ddfba35e8738;hb=e08ba171c9227d9058366c68fe8b2e1f53870c88;hp=7bfaf6dea9e611f170ba1635962846ffd31f005b;hpb=7d94e5c9da8929f41b13a28459e6f46760a8ef68;p=myslice.git diff --git a/plugins/updater/updater.js b/plugins/updater/updater.js index 7bfaf6de..ae349f7c 100644 --- a/plugins/updater/updater.js +++ b/plugins/updater/updater.js @@ -60,6 +60,7 @@ undefined, /* unique */ Math.uuid(32,16), undefined, undefined /* maybe some day I'll get that one */); + manifold.insert_query (this.update_query); // arm button once document is loaded (function(updater) {$(document).ready(function(){updater.arm_button()})})(this); @@ -71,8 +72,8 @@ var query_uuid = e.data.options.query_uuid; var update_query = e.data.update_query; $.publish("/messages/debug","Updater.submit_update_request " + update_query.__repr()); - // publish results as if coming from the original query - manifold.asynchroneous_exec ( [ {'query_uuid': query_uuid, 'publish_uuid' : update_query.query_uuid} ]); + // actually send the Update query, but publish results as if coming from the original query + manifold.asynchroneous_exec ( [ {'query_uuid': update_query.query_uuid, 'publish_uuid' : query_uuid} ]); // looks like a previous attempt to disable the button while the query is flying //$('#updateslice-' + options.plugin_uuid).prop('disabled', true); },