$(this.element).addClass('bunchmultiple_root');
}
+ this.updateLegends();
+
setTimeout(function () {
$this.inited = true;
$this.updateAndChange();
-
}, 1000);
this.resize();
duplicateItem: function (item) {
let copy = $(item).clone();
- console.log(copy);
$(copy).insertAfter(item);
this.updateAndChange();
},
},
replaceData: function (data) {
- console.log(data);
this.empty(false);
var $this = this;
$.each(data, function (k, v) {
},
initItem: function (values) {
-
var $this = this;
var collapsed = true;
var isNew = false;
isNew = true;
}
var item = this.element.find('.sample' + this.bmidselector).clone(false);
+ $(item).attr('data-debug-data', JSON.stringify(values));
if (isNew) {
$(item).find('[data-reset-value]').val('');
}
}
})
};
-
-jQuery(document).ready(function ($) {
- $(".bunchmultiple").bunchmultiple();
-
-});
-
-jQuery.cachedScript = function (url, options) {
-
- // Allow user to set any option except for dataType, cache, and url
- options = $.extend(options || {}, {
- dataType: "script", cache: true, url: url
- });
-
- // Use $.ajax() since it is more flexible than $.getScript
- // Return the jqXHR object so we can chain callbacks
- return jQuery.ajax(options);
-};
-
-function replaceAll(from, to, str) {
- var e = str.split(from);
- return e.join(to);
-}