Skip to content
Permalink
Browse files

Allow override of emptyText for search combo (wsgi), initial width of…

… search combo depending on map width,

Limiting characters in Print Window for Title input
  • Loading branch information...
uprel committed May 7, 2019
1 parent 12c8f30 commit 0397dd707154841918c59e785434035db944d75f
Showing with 7 additions and 8 deletions.
  1. +1 −1 client/site/js/QGISExtensions.js
  2. +6 −7 client/site/js/WebgisInit_functions.js
@@ -563,7 +563,7 @@ QGIS.SearchComboBox = Ext.extend(Ext.form.ComboBox, {

initComponent: function() {

this.emptyText = searchFieldDefaultTextString[lang];
//this.emptyText = searchFieldDefaultTextString[lang];
this.triggerConfig = { // we use a default clear trigger here
tag: "img", src: Ext.BLANK_IMAGE_URL, cls:'x-form-trigger x-form-clear-trigger'
};
@@ -1054,7 +1054,7 @@ function postLoading() {
qgisSearchCombo = new GeoExt.ux.GeocodingSearchCombo({
map: geoExtMap.map,
highlightLayerName: 'attribHighLight',
width: 300,
width: geoExtMap.getWidth() / 3,
minChars: 2,
loadingText: geonamesLoadingString[lang],
emptyText: geonamesEmptyString[lang],
@@ -1072,8 +1072,9 @@ function postLoading() {
map: geoExtMap.map,
highlightLayerName: 'attribHighLight',
hasReverseAxisOrder: false, // PostGIS returns bbox' coordinates always x/y
width: 300,
width: geoExtMap.getWidth() / 3,
searchtables: searchtables,
emptyText: (projectData.wsgi && projectData.wsgi.emptytext) ? projectData.wsgi.emptytext : searchFieldDefaultTextString["en"],
url: searchBoxQueryURL,
geomUrl: searchBoxGetGeomURL,
srs: projectData.crs.split(':')[1] //this is the map coordinate system and that's what we need to get from server
@@ -1334,18 +1335,16 @@ function postLoading() {
{
id: 'printTitle',
xtype: 'textfield',
maxLength: 70,
//fieldLabel: 'TITLE',
hideLabel: true,
emptyText: TR.emptyPrintTitleText,
hidden: projectData.user=='guest',
anchor:'100%'


anchor:'100%',
autoCreate: {tag: 'input', type: 'text', autocomplete: 'off', maxlength: '50'}
},{
id: 'printDescription',
xtype: 'textarea',
maxLength: 150,
maxLength: 100,
boxMaxHeight: 35,
boxMinHeight: 35,
height: 35,

0 comments on commit 0397dd7

Please sign in to comment.
You can’t perform that action at this time.