You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2006/04/24 19:34:18 UTC
svn commit: r396615 - in /myfaces/tobago/trunk/theme:
scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/
standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/
Author: weber
Date: Mon Apr 24 10:34:16 2006
New Revision: 396615
URL: http://svn.apache.org/viewcvs?rev=396615&view=rev
Log:
popup blinking via css,
some css fixes
Modified:
myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/style.css
myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Modified: myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/style.css
URL: http://svn.apache.org/viewcvs/myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/style.css?rev=396615&r1=396614&r2=396615&view=diff
==============================================================================
--- myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/style.css (original)
+++ myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/style.css Mon Apr 24 10:34:16 2006
@@ -251,7 +251,7 @@
}
.tobago-selectBooleanCheckbox-error {
- border-style: 2px solid #ff0000;
+ border: 2px solid #ff0000;
}
/* selectOneListbox */
@@ -462,6 +462,10 @@
/* -moz-opacity: 0.4;*/
}
+.tobago-popup-blink {
+ background: red;
+}
+
.tobago-popup-iframe {
z-index: 2;
width: 100%;
@@ -519,7 +523,6 @@
.tobago-richTextEditor-toolbar-button-span-enabled {
cursor: pointer;
- cursor: hand;
}
.tobago-richTextEditor-toolbar-button-span-disabled {
@@ -749,7 +752,7 @@
.tobago-toolbar-button {
float: left;
- font-weight: normal
+ font-weight: normal;
font-family: arial, helvetica, sans-serif;
padding-top: 2px;
padding-right: 5px;
Modified: myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewcvs/myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=396615&r1=396614&r2=396615&view=diff
==============================================================================
--- myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js (original)
+++ myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Mon Apr 24 10:34:16 2006
@@ -666,20 +666,11 @@
/**
* Make popup blink
- * // TODO use css class
*/
popupBlink: function(id) {
LOG.debug("popupId ist " + id);
- var element = this.element(id);
- element.style.background = 'red';
- setTimeout("Tobago.popupBlinkOff('" + id + "')", 10);
- },
- /**
- * helper for popupBlink
- */
- popupBlinkOff: function(id) {
- var element = this.element(id);
- element.style.background = 'none';
+ Tobago.addCssClass(id, "tobago-popup-blink");
+ setTimeout("Tobago.removeCssClass('" + id + "', 'tobago-popup-blink')", 10);
},
// -------- Util functions ----------------------------------------------------
@@ -798,6 +789,7 @@
* Add a cssClass name to the className property of a htmlElement
*/
addCssClass: function(element, className) {
+ element = Tobago.element(element);
element.className = element.className + " " + className;
},
@@ -805,6 +797,7 @@
* remove a cssClass name from the className property of a htmlElement
*/
removeCssClass: function(element, className) {
+ element = Tobago.element(element);
var classes = " " + element.className + " ";
var re = new RegExp(" " + className + " ", 'g');
while (classes.match(re)) {