[vlma-devel] commit: Try to get the same rendering accross browsers. (Adrien Grand )
git version control
git at videolan.org
Sun Sep 14 18:15:05 CEST 2008
vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Sun Sep 14 17:58:11 2008 +0200| [40ae36f26ce535d765086e7109c5daeb02dd539b] | committer: Adrien Grand
Try to get the same rendering accross browsers.
> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=40ae36f26ce535d765086e7109c5daeb02dd539b
---
.../jsp/configuration/configurationedit_right.jsp | 17 +++++++++++++++++
vlma-webapp/src/main/webapp/css/style.css | 4 ++--
2 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/vlma-webapp/src/main/webapp/WEB-INF/jsp/configuration/configurationedit_right.jsp b/vlma-webapp/src/main/webapp/WEB-INF/jsp/configuration/configurationedit_right.jsp
index 572836d..0eff8f6 100644
--- a/vlma-webapp/src/main/webapp/WEB-INF/jsp/configuration/configurationedit_right.jsp
+++ b/vlma-webapp/src/main/webapp/WEB-INF/jsp/configuration/configurationedit_right.jsp
@@ -245,6 +245,23 @@
</form>
<script type="text/javascript">
+document.getElementsByClassName = function(clsName){
+ var retVal = new Array();
+ var elements = document.getElementsByTagName("*");
+ for(var i = 0;i < elements.length;i++){
+ if(elements[i].className.indexOf(" ") >= 0){
+ var classes = elements[i].className.split(" ");
+ for(var j = 0;j < classes.length;j++){
+ if(classes[j] == clsName)
+ retVal.push(elements[i]);
+ }
+ }
+ else if(elements[i].className == clsName)
+ retVal.push(elements[i]);
+ }
+ return retVal;
+}
+
var tables = document.getElementsByClassName("configuration");
for(var i=0; i<tables.length; i++) {
var tds = tables[i].getElementsByTagName("td");
diff --git a/vlma-webapp/src/main/webapp/css/style.css b/vlma-webapp/src/main/webapp/css/style.css
index f28814c..1eaa487 100644
--- a/vlma-webapp/src/main/webapp/css/style.css
+++ b/vlma-webapp/src/main/webapp/css/style.css
@@ -187,14 +187,14 @@ div.help {
text-decoration: underline;
}
-input[type="text"] {
+input.text {
margin: 0;
border: 1px solid #ccc;
background: #fff;
color: #000;
}
-input[type="text"]:hover {
+input.text:hover {
border: 1px solid #808080;
}
More information about the vlma-devel
mailing list