Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Commit

Permalink
Update #103, force integrated search to lowercase, activate search on…
Browse files Browse the repository at this point in the history
…ly for directories.
  • Loading branch information
hdsdi3g committed May 17, 2015
1 parent b87a044 commit b7be44a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/hd3gtv/mydmam/web/stat/Stat.java
Expand Up @@ -160,6 +160,8 @@ public Stat setJsonSearch(String json_search) {
search = gson.fromJson(json_search, String.class);
if (search.trim().equals("")) {
search = null;
} else {
search = search.toLowerCase();
}
return this;
}
Expand Down
8 changes: 7 additions & 1 deletion app/react/mydmam/async/navigate/NavigatePage.jsx
Expand Up @@ -129,7 +129,13 @@ navigate.NavigatePage = React.createClass({
inputboxsearch: dom_inputbox,
});
}
this.navigateTo(this.state.pathindex, 0, this.state.default_page_size, null);
var stat = this.state.stat[md5(this.state.pathindex)];
if (!stat) {
return;
}
if (stat.reference.directory) {
this.navigateTo(this.state.pathindex, 0, this.state.default_page_size, null);
}
},
render: function() {
var stat = this.state.stat[md5(this.state.pathindex)];
Expand Down

0 comments on commit b7be44a

Please sign in to comment.