myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1747711 - /myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-calendar.js
Date Fri, 10 Jun 2016 13:56:35 GMT
Author: lofwyr
Date: Fri Jun 10 13:56:35 2016
New Revision: 1747711

URL: http://svn.apache.org/viewvc?rev=1747711&view=rev
Log:
TOBAGO-1483: Date Picker
* fix JS
[developed by hnoeth]

Modified:
    myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-calendar.js

Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-calendar.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-calendar.js?rev=1747711&r1=1747710&r2=1747711&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-calendar.js
(original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-calendar.js
Fri Jun 10 13:56:35 2016
@@ -78,18 +78,19 @@ Tobago.DateTime.init = function (element
         // execution of line 686 in tobago.js
         $date.parent().on('dp.change', function (event) {
           var commands = jQuery(this).find("input").data("tobago-commands");
-          if (commands.change.execute || commands.change.render) {
-            //Tobago.reloadComponent(this, commands.change.partially, commands.change.action,
commands.change);
-            jsf.ajax.request(
-                jQuery(this).find("input").attr("name"),
-                event,
-                {
-                  "javax.faces.behavior.event": "change",
-                  execute: commands.change.execute,
-                  render: commands.change.render
-                });
-          } else {
-            Tobago.submitAction(this.firstElementChild, commands.change.action, commands.change);
+          if (commands && commands.change) {
+            if (commands.change.execute || commands.change.render) {
+              jsf.ajax.request(
+                  jQuery(this).find("input").attr("name"),
+                  event,
+                  {
+                    "javax.faces.behavior.event": "change",
+                    execute: commands.change.execute,
+                    render: commands.change.render
+                  });
+            } else if (commands.change.action) {
+              Tobago.submitAction(this.firstElementChild, commands.change.action, commands.change);
+            }
           }
         });
 



Mime
View raw message