You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2012/12/05 15:00:36 UTC

svn commit: r1417425 - in /myfaces/tobago/trunk/tobago-theme: tobago-theme-speyside/src/main/less/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/ tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standa...

Author: lofwyr
Date: Wed Dec  5 14:00:35 2012
New Revision: 1417425

URL: http://svn.apache.org/viewvc?rev=1417425&view=rev
Log:
TOBAGO-1163: Add some CSS3 features to tobago-theme-speyside
- border for the tc:time

Modified:
    myfaces/tobago/trunk/tobago-theme/tobago-theme-speyside/src/main/less/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/tobago.less
    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-speyside/src/main/less/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/tobago.less
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-speyside/src/main/less/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/tobago.less?rev=1417425&r1=1417424&r2=1417425&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-speyside/src/main/less/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/tobago.less (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-speyside/src/main/less/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/tobago.less Wed Dec  5 14:00:35 2012
@@ -861,6 +861,12 @@ div.tobago-tabGroup-toolBar {
   background: #E8E8E8;
 }
 
+.tobago-time-borderDiv-markup-focus {
+  outline: none;
+  border-color: @focusColor;
+  .field-focus-shadow;
+}
+
 .tobago-time-incImage, .tobago-time-decImage {
   left: 60px;
 }

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=1417425&r1=1417424&r2=1417425&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 Wed Dec  5 14:00:35 2012
@@ -431,6 +431,9 @@ Tobago.Time.focus = function (input) {
 
   // save the old value
   input.data("tobago-oldvalue", input.val());
+
+  // set a class for glow effects
+  time.children(".tobago-time-borderDiv").addClass("tobago-time-borderDiv-markup-focus");
 };
 
 Tobago.Time.blur = function (input) {
@@ -441,6 +444,9 @@ Tobago.Time.blur = function (input) {
     value = parseInt(value, 10); // use 10 to avoid parsing octal numbers, if the string begins with 0
   }
   Tobago.Time.setValue(input, value);
+
+  var time = Tobago.Time.findElement(input, null);
+  time.children(".tobago-time-borderDiv").removeClass("tobago-time-borderDiv-markup-focus");
 };
 
 Tobago.Time.initFromDateField = function (time) {