svn commit: r1240312 - /struts/struts2/trunk/core/src/main/resources/org/apache/struts2/static/utils.js
Author: jogep Date: Fri Feb 3 19:44:51 2012 New Revision: 1240312 URL: http://svn.apache.org/viewvc?rev=1240312&view=rev Log: WW-3736: Client Validation is broken for Struts2 themes Modified: struts/struts2/trunk/core/src/main/resources/org/apache/struts2/static/utils.js Modified: struts/struts2/trunk/core/src/main/resources/org/apache/struts2/static/utils.js URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/org/apache/struts2/static/utils.js?rev=1240312&r1=1240311&r2=1240312&view=diff == --- struts/struts2/trunk/core/src/main/resources/org/apache/struts2/static/utils.js (original) +++ struts/struts2/trunk/core/src/main/resources/org/apache/struts2/static/utils.js Fri Feb 3 19:44:51 2012 @@ -24,11 +24,16 @@ var StrutsUtils = {}; // gets an object with validation errors from string returned by // the ajaxValidation interceptor StrutsUtils.getValidationErrors = function(data) { - if(data.indexOf("/* {") === 0) { -return eval("( " + data.substring(2, data.length - 2) + " )"); - } else { -return null; - } +if (typeof data === "object") { +return data; +} +else { +if (data.indexOf("/* {") === 0) { +return eval("( " + data.substring(2, data.length - 2) + " )"); +} else { +return null; +} +} }; StrutsUtils.clearValidationErrors = function(form) {
[CONF] Confluence Changes in the last 24 hours
This is a daily summary of all recent changes in Confluence. - Updated Spaces: - Apache Camel (https://cwiki.apache.org/confluence/display/CAMEL) Pages - Writing Components edited by rubytuesdaydono (11:59 AM) https://cwiki.apache.org/confluence/display/CAMEL/Writing+Components FreeMarker edited by mazzag (10:36 AM) https://cwiki.apache.org/confluence/display/CAMEL/FreeMarker Component List edited by rubytuesdaydono (10:20 AM) https://cwiki.apache.org/confluence/display/CAMEL/Component+List Camel 2.10.0 Release edited by davsclaus (05:22 AM) https://cwiki.apache.org/confluence/display/CAMEL/Camel+2.10.0+Release Articles edited by davsclaus (04:57 AM) https://cwiki.apache.org/confluence/display/CAMEL/Articles Apache CXF Documentation (https://cwiki.apache.org/confluence/display/CXF20DOC) Pages - Client HTTP Transport (including SSL support) edited by christian schneider (04:59 AM) https://cwiki.apache.org/confluence/display/CXF20DOC/Client+HTTP+Transport+%28including+SSL+support%29 Security edited by sergey_beryozkin (04:22 AM) https://cwiki.apache.org/confluence/display/CXF20DOC/Security Apache DeltaSpike (https://cwiki.apache.org/confluence/display/DeltaSpike) Pages - Steps For A Release edited by gpetracek (08:03 PM) https://cwiki.apache.org/confluence/display/DeltaSpike/Steps+For+A+Release Apache Felix (https://cwiki.apache.org/confluence/display/FELIX) Pages - Release Management (Nexus) edited by mcculls (08:34 AM) https://cwiki.apache.org/confluence/display/FELIX/Release+Management+%28Nexus%29 Apache Giraph (Incubating) (https://cwiki.apache.org/confluence/display/GIRAPH) Pages - Index edited by qwertymaniac (12:50 PM) https://cwiki.apache.org/confluence/display/GIRAPH/Index Quick Start Guide edited by qwertymaniac (08:04 AM) https://cwiki.apache.org/confluence/display/GIRAPH/Quick+Start+Guide Apache Kafka (https://cwiki.apache.org/confluence/display/KAFKA) Pages - Kafka papers and presentations edited by tlossen (10:53 AM) https://cwiki.apache.org/confluence/display/KAFKA/Kafka+papers+and+presentations Comments https://cwiki.apache.org/confluence/display/KAFKA/New+Wire+Format+Proposal (1) Apache ActiveMQ NMS (https://cwiki.apache.org/confluence/display/NMS) Pages - Index edited by tabish121 (06:12 AM) https://cwiki.apache.org/confluence/display/NMS/Index OpenJPA (https://cwiki.apache.org/confluence/display/openjpa) Pages - Release Setup edited by allee8...@gmail.com (11:09 PM) https://cwiki.apache.org/confluence/display/openjpa/Release+Setup Documentation edited by dianner (09:55 AM) https://cwiki.apache.org/confluence/display/openjpa/Documentation Apache Openmeetings (https://cwiki.apache.org/confluence/display/OPENMEETINGS) Pages - Sección OpenMeetings en español edited by greenes (12:09 PM) https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=27836624 Tutoriales en español relacionados con OpenMeetings created by greenes (10:25 AM) https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=27837303 NewAudioVideoComponents created by seba.wag...@gmail.com (11:41 AM) https://cwiki.apache.org/confluence/display/OPENMEETINGS/NewAudioVideoComponents Apache Tapestry (https://cwiki.apache.org/confluence/display/TAPESTRY) Pages - Layout Component edited by hlship (11:57 AM) https://cwiki.apache.org/confluence/display/TAPESTRY/Layout+Component Apache Wicket (https://cwiki.apache.org/confluence/display/WICKET) Pages - Migration to Wicket 6.0 edited by ivaynberg (02:01 AM) https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+6.0 Apache Struts 2 Documentation (https://cwiki.apache.org/confluence/display/WW) Comments https://cwiki.apache.org/confluence/display/WW/S2-009 (1) - Users - qwertymaniac https://cwiki.apache.org/confluence/display/~qwertymaniac Change your notification preferences: https://cwiki.apache.org/confluence/users/viewnotifications.action