Merge pull request #1763 from ONLYOFFICE/fix/fix-bugs
[DE PE SSE] Fix search
This commit is contained in:
commit
b0608d6679
|
@ -121,7 +121,7 @@ define([
|
|||
this._state.useRegExp = checked;
|
||||
break;
|
||||
}
|
||||
if (this._state.searchText !== '') {
|
||||
if (this._state.searchText) {
|
||||
this.hideResults();
|
||||
if (this.onQuerySearch()) {
|
||||
if (this.searchTimer) {
|
||||
|
|
|
@ -197,6 +197,8 @@ define([
|
|||
toolbar = me.getApplication().getController('Toolbar').getView();
|
||||
toolbar.btnCollabChanges = me.header.btnSave;
|
||||
}
|
||||
|
||||
me.header.btnSearch.on('toggle', me.onSearchToggle.bind(this));
|
||||
},
|
||||
|
||||
onAppReady: function (config) {
|
||||
|
|
|
@ -118,7 +118,7 @@ define([
|
|||
this._state.useRegExp = checked;
|
||||
break;
|
||||
}
|
||||
if (this._state.searchText !== '') {
|
||||
if (this._state.searchText) {
|
||||
this.hideResults();
|
||||
if (this.onQuerySearch()) {
|
||||
if (this.searchTimer) {
|
||||
|
|
|
@ -200,6 +200,8 @@ define([
|
|||
if ( config.customization.toolbarHideFileName )
|
||||
me.viewport.vlayout.getItem('toolbar').el.addClass('style-skip-docname');
|
||||
}
|
||||
|
||||
me.header.btnSearch.on('toggle', me.onSearchToggle.bind(this));
|
||||
},
|
||||
|
||||
onAppReady: function (config) {
|
||||
|
|
|
@ -157,7 +157,7 @@ define([
|
|||
this._state.lookInFormulas = value;
|
||||
break;
|
||||
}
|
||||
if (runSearch && this._state.searchText !== '') {
|
||||
if (runSearch && this._state.searchText) {
|
||||
this.hideResults();
|
||||
if (this.onQuerySearch()) {
|
||||
this.searchTimer && clearInterval(this.searchTimer);
|
||||
|
|
|
@ -177,6 +177,8 @@ define([
|
|||
if ( config.customization.toolbarHideFileName )
|
||||
me.viewport.vlayout.getItem('toolbar').el.addClass('style-skip-docname');
|
||||
}
|
||||
|
||||
me.header.btnSearch.on('toggle', me.onSearchToggle.bind(this));
|
||||
},
|
||||
|
||||
onAppReady: function (config) {
|
||||
|
|
|
@ -753,8 +753,9 @@
|
|||
}
|
||||
}
|
||||
#search-results {
|
||||
padding-top: 6px;
|
||||
padding: 0;
|
||||
.search-table {
|
||||
padding-top: 5px;
|
||||
width:100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
|
@ -766,6 +767,7 @@
|
|||
text-align: start;
|
||||
font-weight: normal;
|
||||
padding-left: 4px;
|
||||
padding-top: 2px;
|
||||
&:not(:first-child) {
|
||||
border-left: @scaled-one-px-value-ie solid @border-divider-ie;
|
||||
border-left: @scaled-one-px-value solid @border-divider;
|
||||
|
@ -777,7 +779,7 @@
|
|||
.search-items {
|
||||
height: calc(100% - 24px);
|
||||
position: absolute;
|
||||
top: 23px;
|
||||
top: 28px;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
.item {
|
||||
|
|
Loading…
Reference in a new issue