summaryrefslogtreecommitdiffstats
path: root/welco/static
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2015-11-17 13:41:45 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2015-11-17 13:41:45 (GMT)
commiteecbc602f91b24116c5a00f64b6ac35e8124e7bf (patch)
tree8a51ddb0b41d67d1858e2e8701e00179b17996eb /welco/static
parent7069da02ddb4917de3fd4d5e6d3656680f9ebd18 (diff)
downloadwelco-eecbc602f91b24116c5a00f64b6ac35e8124e7bf.zip
welco-eecbc602f91b24116c5a00f64b6ac35e8124e7bf.tar.gz
welco-eecbc602f91b24116c5a00f64b6ac35e8124e7bf.tar.bz2
misc: bring welco/wcs errors to the UI as alertsv0.4
Diffstat (limited to 'welco/static')
-rw-r--r--welco/static/js/welco.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/welco/static/js/welco.js b/welco/static/js/welco.js
index c3505f7..1a54055 100644
--- a/welco/static/js/welco.js
+++ b/welco/static/js/welco.js
@@ -121,7 +121,7 @@ $(function() {
if (data.result == 'ok') {
window.location.reload();
} else {
- /* TODO: display error notification */
+ alert(data.msg);
}
},
error: function(error) { console.log(':(', error); }
@@ -464,7 +464,7 @@ $(function() {
window.open(data.url, '_blank');
refresh_bottom_cells();
} else {
- /* TODO: display error notification */
+ alert(data.msg);
}
},
error: function(error) { console.log(':(', error); }