Skip to content

Commit

Permalink
Fixed issue#05450: Question code can be empty when a space is entered
Browse files Browse the repository at this point in the history
Dev changed Javascript isEmpty() function so that this fixes other places where spaces could have been inadvertently accepted

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@12137 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
TMSWhite committed Jan 20, 2012
1 parent 5f19699 commit a20a1b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/admin/admin_core.js
Expand Up @@ -333,7 +333,7 @@ function validatefilename (form, strmessage )
// If the length of the element's string is 0 then display helper message
function isEmpty(elem, helperMsg)
{
if(elem.value.length == 0){
if($.trim(elem.value).length == 0){
alert(helperMsg);
elem.focus(); // set the focus to this input
return false;
Expand Down

0 comments on commit a20a1b3

Please sign in to comment.