Configuration of Events and Sensors are working with dynamic forms
Former-commit-id: ff81dee3365eee865099badc73ca70bc7cb222c6
This commit is contained in:
parent
02e15810ec
commit
42064e5209
7 changed files with 173 additions and 134 deletions
19
web-resource/js/hal.js
Executable file
19
web-resource/js/hal.js
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
(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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue