Permalink
Browse files

Fixing refresh button for table to reload data from server

  • Loading branch information...
uprel committed Jan 3, 2019
1 parent 7cbec00 commit 25afc805b0074d9a1f482bea4a07d28b86bb0f36
Showing with 7 additions and 3 deletions.
  1. +2 −2 client/site/js/QGISExtensions.js
  2. +5 −1 client/site/js/WebgisInit_functions.js
@@ -892,7 +892,7 @@ QGIS.SearchPanel = Ext.extend(Ext.Panel, {
//Ext.Ajax.on('requestexception', this.onAjaxRequestException, this);
},

onSubmit: function() {
onSubmit: function(reload) {

if(this.form !== null) {
if(this.form.getForm().isValid()===false){
@@ -927,7 +927,7 @@ QGIS.SearchPanel = Ext.extend(Ext.Panel, {
//alert(maskElement.id);
//check if we already have table for layer in case of open table call
if (this.resultsGrid !== null && this.resultsGrid.store !== null) {
if (maskElement.id=='BottomPanel' && this.gridResults === this.resultsGrid.store.maxResults && !this.useBbox) {
if (maskElement.id=='BottomPanel' && this.gridResults === this.resultsGrid.store.maxResults && !this.useBbox && !reload) {
maskElement.activate(Ext.getCmp('table_' + this.queryLayer));
}
else {
@@ -1628,7 +1628,11 @@ function showSearchPanelResults(searchPanelInstance, features) {
pagingConfig = new Ext.ux.PagingToolbar({
pageSize: searchPanelInstance.gridResultsPageSize,
store: searchPanelInstance.store,
displayInfo: false
displayInfo: false,
grid: searchPanelInstance,
doRefresh: function () {
this.grid.onSubmit(true);
}
});

}

0 comments on commit 25afc80

Please sign in to comment.