Skip to content

Commit 30611be

Browse files
GaborApatiNagybfederle
authored andcommitted
CLOUDSTACK-7561: UI: After creating a new account, the "Add Account" dialog remains open
-Removed unused code that was causing javascript exception Signed-off-by: Brian Federle <brian.federle@citrix.com>
1 parent 765d402 commit 30611be

1 file changed

Lines changed: 1 addition & 19 deletions

File tree

ui/scripts/accountsWizard.js

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,6 @@
222222
dataType: "json",
223223
type: "POST",
224224
async: false,
225-
success: function(json) {
226-
var count = json.ldapuserresponse.count;
227-
args.response.success({
228-
data: count
229-
});
230-
},
231225
error: function(XMLHttpResponse) {
232226
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
233227
}
@@ -238,12 +232,6 @@
238232
dataType: "json",
239233
type: "POST",
240234
async: false,
241-
success: function(json) {
242-
var item = json.createaccountresponse.account;
243-
args.response.success({
244-
data: item
245-
});
246-
},
247235
error: function(XMLHttpResponse) {
248236
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
249237
}
@@ -255,17 +243,11 @@
255243
dataType: "json",
256244
type: "POST",
257245
async: false,
258-
success: function(json) {
259-
var item = json.createaccountresponse.account;
260-
args.response.success({
261-
data: item
262-
});
263-
},
264246
error: function(XMLHttpResponse) {
265247
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
266248
}
267249
});
268250
}
269251
}
270252
};
271-
}(cloudStack, jQuery));
253+
}(cloudStack, jQuery));

0 commit comments

Comments
 (0)