Skip to content

Commit

Permalink
Item11541: row count needs to be a number, as so ably debugged by Flo…
Browse files Browse the repository at this point in the history
…rianSchlichting

git-svn-id: http://svn.foswiki.org/trunk@14037 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
CrawfordCurrie authored and CrawfordCurrie committed Feb 20, 2012
1 parent 6a98578 commit 5a95e62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/pub/System/JavascriptFiles/foswiki_edit_src.js
Expand Up @@ -95,6 +95,7 @@ var EDITBOX_FONTSTYLE_PROPORTIONAL_STYLE = "foswikiEditboxStyleProportional";
*/
foswiki.Edit.changeEditBox = function(inDirection) {
var rowCount = $('#' + EDITBOX_ID).attr('rows');
rowCount = parseInt(rowCount);
rowCount += (inDirection * EDITBOX_CHANGE_STEP_SIZE);
rowCount = (rowCount < EDITBOX_MIN_ROWCOUNT)
? EDITBOX_MIN_ROWCOUNT : rowCount;
Expand Down

0 comments on commit 5a95e62

Please sign in to comment.