Author: cristi.falcas
Description:
When using the WikiEditor to add a new table, the following message is printed:
"You have not entered a valid number of rows or columns."
It seems that in jquery.wikiEditor.dialogs.config.js, line 837, the following expression return true:
if ( isNaN( rows ) || isNaN( cols ) || rows != rowsVal || cols != colsVal )
From my tests, the culprit is rows !== rowsVal. It looks like one is a number and the other a string. Adding the following alert
alert (mw.msg(rows !== rowsVal)+mw.msg(rows)+mw.msg(rowsVal)+mw.msg(typeof rows)+mw.msg(typeof rowsVal));
uotputs this:
<true><3><3><number><string>
Currently I had to update the js script to remove the strict equality operators:
if ( isNaN( rows ) || isNaN( cols ) || rows != rowsVal || cols != colsVal )
Version: master
Severity: major