diff --git a/lsp/functions.js b/lsp/functions.js index 0a840c3b..924cb3b5 100644 --- a/lsp/functions.js +++ b/lsp/functions.js @@ -27,13 +27,13 @@ ('00' + d.getSeconds()).slice(-2) ].join(':'); } - - - /** + + + /** * Format a date to mmm dd /yyyy hh:mm:ss format * @param date the date to format (timestamp) */ - months = Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'); + months = Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'); function formatDateLong(date) { var d = new Date(date * 1000); @@ -48,10 +48,10 @@ ('00' + d.getSeconds()).slice(-2) ].join(':'); } - function nameMonth(monthNum) - { - months = Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'); - } + function nameMonth(monthNum) + { + months = Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'); + } /** @@ -157,7 +157,7 @@ var ret = $.extend(true, { "streams": {}, - "capabilities": {}, + "capabilities": {}, "statistics": {} }, d); @@ -352,10 +352,11 @@ 'timeout': 5000, - 'error': function() + 'error': function(jqXHR,textStatus,errorThrown) { showTab('disconnect'); $('#shield').remove(); // remove loading display + alert('O dear! An error occurred while attempting to communicatie with the MistServer.\n\n'+textStatus+'\n'+errorThrown); }, 'success': function(d) { @@ -439,7 +440,7 @@ { case 1: return "Running"; break; case 0: return "Offline"; break; - default: return "" + status + ""; break; + default: return "" + status + ""; break; } } diff --git a/lsp/main.js b/lsp/main.js index 89568506..5b1a0cd0 100644 --- a/lsp/main.js +++ b/lsp/main.js @@ -83,7 +83,7 @@ /** * Display a certain page. It contains a (giant) switch-statement, that builds a page depending on the tab requested * @param name the name of the tab - * @param streamname only used when editing streams, the name of the edited (or new) stream. Also used with the 'embed' tab + * @param streamname only used when editing streams or protocols, the name of the edited (or new) stream/protocol. Also used with the 'embed' tab */ function showTab(name, streamname) { @@ -187,7 +187,7 @@ ) ).append( $('