Skip to content

Commit

Permalink
[ui:cwd] incsearch support noupdate on searchend
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Jul 3, 2016
1 parent 07070e4 commit 845f64f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions js/ui/cwd.js
Original file line number Diff line number Diff line change
Expand Up @@ -1840,7 +1840,7 @@ $.fn.elfindercwd = function(fm, options) {
if (query || incHashes) {
query = '';
if (incHashes) {
fm.trigger('incsearchend');
fm.trigger('incsearchend', e.data);
}
if (!e.data || !e.data.noupdate) {
query && unselectAll();
Expand Down Expand Up @@ -1875,11 +1875,13 @@ $.fn.elfindercwd = function(fm, options) {
resize();
});
})
.bind('incsearchend', function() {
.bind('incsearchend', function(e) {
fm.searchStatus.ininc = false;
incHashes = void 0;
wz.removeClass('elfinder-search-result');
content();
if (!e.data || !e.data.noupdate) {
content();
}
fm.autoSync();
})
.bind('sortchange', function() {
Expand Down

0 comments on commit 845f64f

Please sign in to comment.