Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
markusslima committed Aug 10, 2015
2 parents 7fd4c93 + 5c52e1a commit 6d61178
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bootstrap-filestyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/
(function($) {"use strict";

var nextId = 0;

var Filestyle = function(element, options) {
this.options = options;
this.$elementFilestyle = [];
Expand Down Expand Up @@ -220,10 +222,11 @@
$label;

if (id === '' || !id) {
id = 'filestyle-' + $('.bootstrap-filestyle').length;
id = 'filestyle-' + nextId;
_self.$element.attr({
'id' : id
});
nextId++;
}

btn = '<span class="group-span-filestyle ' + (_self.options.input ? 'input-group-btn' : '') + '">' +
Expand Down

0 comments on commit 6d61178

Please sign in to comment.