Skip to content

Commit

Permalink
Fixed bugs
Browse files Browse the repository at this point in the history
- fixed searching
- fixed not loading JS
  • Loading branch information
hidekuma committed Oct 30, 2020
1 parent 8093d6d commit 762121b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flask_s3_viewer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

APP_TEMPLATE_FOLDER = FIXED_TEMPLATE_FOLDER

__version__ = "0.1.1"
__version__ = "0.1.2"


class Singleton(type):
Expand Down
4 changes: 2 additions & 2 deletions flask_s3_viewer/blueprints/templates/mdl/controller.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@

<!-- Search -->
<div class="mdl-textfield mdl-js-textfield mdl-textfield--expandable">
<label id="tsrch" class="mdl-button mdl-js-button mdl-button--icon" for="flask_s3_viewer_search">
<label id="tsrch" class="mdl-button mdl-js-button mdl-button--icon" for="fs3viewer_search">
<i class="material-icons">search</i>
</label>
<div class="mdl-tooltip" data-mdl-for="tsrch">
Search files
</div>
<div class="mdl-textfield__expandable-holder">
<input onkeydown="if(event.key == 'Enter') FLASK_S3_VIEWER_CORE.runSearching(event);" class="mdl-textfield__input" type="text" name="search" id="flask_s3_viewer_search">
<input onkeydown="if(event.key == 'Enter') FLASK_S3_VIEWER_CORE.runSearching(event);" class="mdl-textfield__input" type="text" name="search" id="fs3viewer_search">
</div>
</div>
{% if SEARCH and SEARCH != '' %}
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
'blueprints/templates/base/files.html',
'blueprints/templates/base/layout.html',
'blueprints/templates/base/prefixes.html',
'blueprints/static/js/flask.s3viewer.core.js'
]
},
include_package_data=True,
Expand Down

0 comments on commit 762121b

Please sign in to comment.