From d9247b5ff987a56df958954eaaad0b14e4bdd944 Mon Sep 17 00:00:00 2001 From: Sushma Sharma Date: Wed, 2 Sep 2015 17:19:23 -0400 Subject: [PATCH] Modify transferAttributes() function to take all the properties while cloning --- js/bootstrap-combobox.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/bootstrap-combobox.js b/js/bootstrap-combobox.js index af5dc0d..37089a8 100755 --- a/js/bootstrap-combobox.js +++ b/js/bootstrap-combobox.js @@ -101,12 +101,12 @@ this.$target.prop('name', this.$source.prop('name')) this.$target.val(this.$source.val()) this.$source.removeAttr('name') // Remove from source otherwise form will pass parameter twice. - this.$element.attr('required', this.$source.attr('required')) - this.$element.attr('rel', this.$source.attr('rel')) - this.$element.attr('title', this.$source.attr('title')) - this.$element.attr('class', this.$source.attr('class')) - this.$element.attr('tabindex', this.$source.attr('tabindex')) - this.$source.removeAttr('tabindex') + var that = this, + attributes = this.$source.prop("attributes"); + $.each(attributes, function() { + if(this.name !== 'style') + that.$element.attr(this.name, this.value); + }); if (this.$source.attr('disabled')!==undefined) this.disable(); }