Skip to content

Commit

Permalink
Correction version 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
markusslima committed Nov 7, 2017
1 parent 6c90edd commit 85b205f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/bootstrap-filestyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@
'text' : $this.attr('data-text'),
'btnClass' : $this.attr('data-btnClass'),
'badge' : $this.attr('data-badge') === 'true',
'dragdrop' : $this.attr('data-dragdrop') === 'false',
'dragdrop' : $this.attr('data-dragdrop') !== 'false',
'badgeName' : $this.attr('data-badgeName'),
'placeholder': $this.attr('data-placeholder')
};
Expand Down
15 changes: 1 addition & 14 deletions src/bootstrap-filestyle.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>
<script type="text/javascript" src="../src/bootstrap-filestyle.js"></script>
</head>

<body>
Expand Down Expand Up @@ -76,7 +75,7 @@ <h3>Testing Options JavaScript</h3>
<button type="button" class="btn btn-secondary btn-sm" id="countRed">Count red</button>
<button type="button" class="btn btn-secondary btn-sm" id="countToggle">Toggle</button>
</label>
<input type="file" id="input03" multiple="multiple">
<input type="file" id="input03" multiple="multiple" class="filestyle">
</div>
<div class="form-group">
<label>Include external icon </label>
Expand Down Expand Up @@ -165,7 +164,7 @@ <h3>Testing initialize via data attributes</h3>
<hr>
<div class="form-group">
<label class="control-label">Change text button</label>
<input type="file" class="filestyle" data-text="Find">
<input type="file" class="filestyle" data-text="Find" data-dragdrop="false">
</div>
<div class="form-group">
<label class="control-label">Multiples data attributes</label>
Expand All @@ -175,6 +174,7 @@ <h3>Testing initialize via data attributes</h3>
</div>
</div>
</div>
<script type="text/javascript" src="../src/bootstrap-filestyle.min.js"></script>

<script type="text/javascript">
$('#input01').filestyle()
Expand Down

0 comments on commit 85b205f

Please sign in to comment.