Skip to content

Commit

Permalink
only enable file button when the input is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
ti authored Apr 23, 2018
1 parent 9f459fc commit 7f386a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/files/template/omni.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h4 class="ui dividing header">Magnet URI Editor</h4>
ng-change="parse()"
ng-enter="submitOmni()"/>
<div class="upload-icon">
<input type="file" name="upload-input" id="upload-input" accept=".torrent" onchange="angular.element(this).scope().uploadFile(this)" />
<input type="file" name="upload-input" ng-disabled="mode.search || mode.magnet || mode.torrent" id="upload-input" accept=".torrent" onchange="angular.element(this).scope().uploadFile(this)" />
<label for="upload-input" class="upload-label"><i class="icon" ng-class="{search: mode.search, magnet: mode.magnet || mode.torrent, upload: !mode.search && !mode.magnet && !mode.torrent}"></i></label>
</div>
</div>
Expand Down

0 comments on commit 7f386a8

Please sign in to comment.