From: Thierry Parmentelat Date: Fri, 19 Apr 2013 11:02:10 +0000 (+0200) Subject: minor X-Git-Tag: myslice-0.2-1~145 X-Git-Url: http://git.onelab.eu/?p=unfold.git;a=commitdiff_plain;h=3b30a7113eff4271f36af646e2ed52e7adbb39bb minor --- diff --git a/plugins/updater/updater.js b/plugins/updater/updater.js index 7986fee7..3c35b4da 100644 --- a/plugins/updater/updater.js +++ b/plugins/updater/updater.js @@ -90,26 +90,25 @@ if (debug) messages.debug("retrieved error code " + code + " and output " + output); } - update_resources = function (e, resources, change) { + this.update_resources = function (e, resources, change) { data = e.data.instance.data().Slices; data.update_query.params['resource'] = resources $.publish('/update/' + data.options.query_uuid, [data.update_query, true]); }, - update_leases = function (e, leases, change) { + this.update_leases = function (e, leases, change) { data = e.data.instance.data().Slices; data.update_query.params['lease'] = leases $.publish('/update/' + data.options.query_uuid, [data.update_query, true]); }, - - - - query_completed = function (e, rows, query) { + + this.query_completed = function (e, rows, query) { /* This function is called twice : get and update */ messages.info("updater.query_completed - not implemented yet"); + return; var data = e.data.instance.data().Slices;