Merged old bug, sorry

This commit is contained in:
Thomas Gelf 2014-03-17 16:34:37 +00:00
parent 8dba84e535
commit 77e88b24dd

View File

@ -45,13 +45,16 @@
* @param {object} data Optional parameters, usually for POST requests
* @param {string} method HTTP method, default is 'GET'
*/
loadUrl: function (url, $target, data, method, autorefresh = false) {
loadUrl: function (url, $target, data, method, autorefresh) {
var id = null;
// Default method is GET
if ('undefined' === typeof method) {
method = 'GET';
}
if ('undefined' === typeof autorefresh) {
autorefresh = false;
}
this.icinga.logger.debug('Loading ', url, ' to ', $target);