Changeset - 7f2a5a6d732c
[Not reviewed]
default
0 1 0
Mads Kiilerich - 11 years ago 2014-07-18 18:44:54
madski@unity3d.com
javascript: don't just alert with 'error' - be slightly more informative
1 file changed with 6 insertions and 6 deletions:
0 comments (0 inline, 0 general)
kallithea/public/js/base.js
Show inline comments
 
@@ -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';
0 comments (0 inline, 0 general)