Revision: 2241
http://mrbs.svn.sourceforge.net/mrbs/?rev=2241&view=rev
Author: cimorrison
Date: 2012-01-11 17:29:55 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
Fixed JavaScript error produced if you have a mandatory textarea field.
Thanks to Neil Brown. See SF ID 3472380
Modified Paths:
--------------
mrbs/trunk/web/edit_entry.php
Modified: mrbs/trunk/web/edit_entry.php
===================================================================
--- mrbs/trunk/web/edit_entry.php 2012-01-11 11:48:20 UTC (rev 2240)
+++ mrbs/trunk/web/edit_entry.php 2012-01-11 17:29:55 UTC (rev 2241)
@@ -1171,7 +1171,9 @@
// If it's a checkbox then it needs to be checked. If it's
// an ordinary field then it must have some content.
?>
- if ( ((field.attr('type').toLowerCase() == 'checkbox') &&
!field.attr('checked')) ||
+ if ( ((field.attr('type') !== undefined) &&
+ (field.attr('type').toLowerCase() == 'checkbox') &&
+ !field.attr('checked')) ||
(field.val() == '') )
{
label = $("label[for="+value+"]").html();
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits