vm.js: modified newProfile: change from inline error message to using what is passed in from AJAX response
diff --git a/web/js/vm.js b/web/js/vm.js
index b56313b..31dfcd5 100644
--- a/web/js/vm.js
+++ b/web/js/vm.js
@@ -586,8 +586,7 @@
function newProfileCB(data, ioArgs) {
if(data.items.failed) {
document.body.style.cursor = 'default';
- dojo.byId('nperrormsg').innerHTML =
- 'A profile with this name already exists';
+ dojo.byId('nperrormsg').innerHTML = data.items.errmsg;
return;
}
dijit.byId('messages').hide();