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