Initial commit
This commit is contained in:
commit
65e0da7e11
1397 changed files with 596542 additions and 0 deletions
13
site/OFF_plugins/field-engineer/assets/js/count.js
Normal file
13
site/OFF_plugins/field-engineer/assets/js/count.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
var EgrCount = (function () {
|
||||
var fn = {};
|
||||
|
||||
fn.trigger = function(obj, this_obj) {
|
||||
var row = this_obj.closest('.egr-row');
|
||||
var fieldsets = row.children('.egr-fieldsets');
|
||||
var fieldset = fieldsets.children('.egr-fieldset');
|
||||
var count = fieldset.length;
|
||||
row.attr('data-count', count);
|
||||
};
|
||||
|
||||
return fn;
|
||||
})();
|
||||
Loading…
Add table
Add a link
Reference in a new issue