Item11393: Enlarge edit box doesn't work right in Safari

pencil
Priority: Normal
Current State: Duplicate
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: PatternSkin
Branches:
Reported By: KipLubliner
Waiting For:
Last Change By: ArthurClemens
When I press the "Enlarge edit box" button, the text box grows huge. Then the "Shrink edit box" button does nothing. If I delete cookies, then the original setting is restored. This was in "raw text" mode, I didn't try "wysiwyg" mode.

I'm using Safari 5.1.2 on Mac OS X 10.6.8.

-- KipLubliner - 29 Dec 2011

I'm also ecountering the same problem. In fact, this problem is browser and OS independent. The problem is caused by the JQuery code in the file: foswidi_edit.js in the code: var b=a("#"+EDITBOX_ID).attr("rows");b+=(c*EDITBOX_CHANGE_STEP_SIZE; a("#"+EDITBOX_ID).attr("rows",b);foswiki.Pref.setPref(EDITBOX_PREF_ROWS_ID,b);

Instead of adding or removing the EDITBOX_CHANGE_STEP_SIZE value of the number of rows, the values are concatenated as strings. This is because the value of variable b is handled as a string.

I solved this problem by changing the following line: var b=a("#"+EDITBOX_ID).attr("rows"); To: var b=parseInt(a("#"+EDITBOX_ID).attr("rows")) By this, value b is changed to an integer instead of a string.

-- NathanSanders - 23 Feb 2012

@Kip: Sorry, I made a typo. The file is called: foswiki_edit.js. The location of this file is:/installation_location_foswiki/pub/System/JavascriptFiles/

-- NathanSanders - 23 Feb 2012

Fixed with Item11541.

-- ArthurClemens - 25 Feb 2012

 

ItemTemplate edit

Summary Enlarge edit box doesn't work right in Safari
ReportedBy KipLubliner
Codebase 1.1.4
SVN Range
AppliesTo Extension
Component PatternSkin
Priority Normal
CurrentState Duplicate
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
Topic revision: r3 - 25 Feb 2012, ArthurClemens
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy