add uris bug fix

This commit is contained in:
hamza zia 2013-01-30 08:52:01 +05:00
parent 2a18278f43
commit c3c135a093

View File

@ -5,7 +5,7 @@ angular.module('webui.services.rpc.helpers', [
return {
addUris: function(uris) {
var cnt = 0;
var cb = function() {
var cb = function(ret) {
cnt--;
if (!cnt) {
// close modal
@ -15,7 +15,7 @@ angular.module('webui.services.rpc.helpers', [
_.each(uris, function(uri) {
cnt++;
// passing true to batch all the addUri calls
rpc.once('addUri', [uris], cb, true);
rpc.once('addUri', [uri], cb, true);
});
// now dispatch all addUri syscalls