hal/web-resource/js/hal.js
Ziver Koc da24ffb822 Events can now be changed in overview page. issue 5
Former-commit-id: 31060a25e584ab277f222dae21bc7a938ec83b1b
2016-01-22 15:46:09 +01:00

27 lines
No EOL
619 B
JavaScript
Executable file

////////////////////////////////////// Definitions
(function(old) {
$.fn.attr = function() {
if(arguments.length === 0) {
if(this.length === 0) {
return null;
}
var obj = {};
$.each(this[0].attributes, function() {
if(this.specified) {
obj[this.name] = this.value;
}
});
return obj;
}
return old.apply(this, arguments);
};
})($.fn.attr);
///////////////////////////////// Autostart
$(function(){
$(".toggle-switch").bootstrapSwitch();
});