X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fupdater%2Fupdater.js;h=3c35b4dacf5d565b0afc499f62ba81dc3bf584a9;hb=3b30a7113eff4271f36af646e2ed52e7adbb39bb;hp=7986fee79ba6a4e08cdec7c44746132c2b145315;hpb=5263bf0a91b2e3b54e07deb3d3ebeabd37de123a;p=unfold.git 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;