Opened 13 years ago

Closed 13 years ago

#831 closed defect (fixed)

Dynamic print frame: scale modification

Reported by: astrid_emde Owned by: dev
Priority: major Milestone: 2.7.2 release
Component: print Version: 2.7.1
Keywords: Cc: mschulz, astrid_emde, armin11, huebi, kmq, uli

Description

if you change the scale in the textfield 1 is changed to 0 so you can't write maybe 1000 it always ends up to 0000

for more information about the process of the dynamic print have a look at #455

Change History (2)

comment:1 by astrid_emde, 13 years ago

could be the solution: change in plugins/mb_print.php

afterChangeSize : function (obj) {
					if (typeof(obj) == "object") {
						if (obj.scale) {
							jqForm[0].scale.value = obj.scale;
						}
						if (obj.coordinates) {
							jqForm[0].coordinates.value = String(obj.coordinates);
						}
					}
				}

comment:2 by verenadiewald, 13 years ago

Resolution: fixed
Status: newclosed

check function for valid scale was called onkeyup, now we use onblur, so the check action does not start while typing, but when input field looses focus

for 2.7: http://trac.osgeo.org/mapbender/changeset/7926

for trunk: http://trac.osgeo.org/mapbender/changeset/7927

Note: See TracTickets for help on using tickets.