# HG changeset patch # User Mads Kiilerich # Date 2014-07-18 18:44:54 # Node ID 7f2a5a6d732c19a41cef2cc544e7c9f55d0d4a7f # Parent 2ea889757ba1b920b5df71247ed19d4244f24f2d javascript: don't just alert with 'error' - be slightly more informative diff --git a/kallithea/public/js/base.js b/kallithea/public/js/base.js --- a/kallithea/public/js/base.js +++ b/kallithea/public/js/base.js @@ -412,7 +412,7 @@ var ajaxGET = function(url,success) { success: success, failure: function (o) { if (o.status != 0) { - alert("error: " + o.statusText); + alert("Ajax GET error: " + o.statusText); }; }, }; @@ -429,7 +429,7 @@ var ajaxPOST = function(url,postData,suc var callback = { success: success, failure: function (o) { - alert("error"); + alert("Ajax POST error: " + o.statusText); }, }; var postData = _toQueryString(postData); @@ -697,11 +697,11 @@ var injectInlineForm = function(tr){ 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 @@ var deleteNotification = function(url, n _run_callbacks(callbacks); }, failure:function(o){ - alert("error"); + alert("deleteNotification failure"); }, }; var postData = '_method=delete'; @@ -1084,7 +1084,7 @@ var readNotification = function(url, not _run_callbacks(callbacks); }, failure:function(o){ - alert("error"); + alert("readNotification failure"); }, }; var postData = '_method=put';