Mercurial > kallithea
changeset 4336:7f2a5a6d732c
javascript: don't just alert with 'error' - be slightly more informative
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Fri, 18 Jul 2014 18:44:54 +0200 |
parents | 2ea889757ba1 |
children | 394cafce8d31 |
files | kallithea/public/js/base.js |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/public/js/base.js Tue Dec 10 19:30:37 2013 +0100 +++ b/kallithea/public/js/base.js Fri Jul 18 18:44:54 2014 +0200 @@ -412,7 +412,7 @@ success: success, failure: function (o) { if (o.status != 0) { - alert("error: " + o.statusText); + alert("Ajax GET error: " + o.statusText); }; }, }; @@ -429,7 +429,7 @@ var callback = { success: success, failure: function (o) { - alert("error"); + alert("Ajax POST error: " + o.statusText); }, }; var postData = _toQueryString(postData); @@ -697,11 +697,11 @@ e.preventDefault(); if(lineno === undefined){ - alert('missing line !'); + alert('Error submitting, line ' + lineno + ' not found.'); return } if(f_path === undefined){ - alert('missing file path !'); + alert('Error submitting, file path ' + f_path + ' not found.'); return } @@ -1066,7 +1066,7 @@ _run_callbacks(callbacks); }, failure:function(o){ - alert("error"); + alert("deleteNotification failure"); }, }; var postData = '_method=delete'; @@ -1084,7 +1084,7 @@ _run_callbacks(callbacks); }, failure:function(o){ - alert("error"); + alert("readNotification failure"); }, }; var postData = '_method=put';