Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 9ff1b6a

Browse files
author
Michael Grauer
committed
BUG: refs #0282. Client side code to display error messages for edit actions.
1 parent bae16c2 commit 9ff1b6a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/public/js/admin/admin.index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,16 @@
7777
data: {assetstoreId: element, assetstoreName: $('input#assetstoreName').val(), assetstorePath: $('input#assetstorePath').val()},
7878
success: function(jsonContent){
7979
jsonResponse = jQuery.parseJSON(jsonContent);
80-
createNotive(jsonResponse[1],1500);
8180
if(jsonResponse[0])
8281
{
82+
createNotive(jsonResponse[1],1500);
8383
window.location.replace(json.global.webroot+'/admin#tabs-assetstore');
8484
window.location.reload();
8585
}
86+
else
87+
{
88+
createNotive(jsonResponse[1],4000);
89+
}
8690
}
8791
});
8892
});

0 commit comments

Comments
 (0)