|
From: <ma...@us...> - 2011-02-22 21:44:48
|
Revision: 303
http://openautomation.svn.sourceforge.net/openautomation/?rev=303&view=rev
Author: mayerch
Date: 2011-02-22 21:44:41 +0000 (Tue, 22 Feb 2011)
Log Message:
-----------
Changed disabling of text selection (which is annoying on a touch device) from JavaScript to CSS3.
This will fix a problem on Chromium where the editor didn't work as the all mousedowns were disabled.
Modified Paths:
--------------
CometVisu/trunk/visu/designs/pure/basic.css
CometVisu/trunk/visu/lib/templateengine.js
Modified: CometVisu/trunk/visu/designs/pure/basic.css
===================================================================
--- CometVisu/trunk/visu/designs/pure/basic.css 2011-02-20 21:10:59 UTC (rev 302)
+++ CometVisu/trunk/visu/designs/pure/basic.css 2011-02-22 21:44:41 UTC (rev 303)
@@ -7,6 +7,10 @@
font-size: 6mm;
overflow: hidden;
margin:0;
+ -moz-user-select: none;
+ -khtml-user-select: none;
+ -webkit-user-select: none;
+ user-select: none;
}
h1
Modified: CometVisu/trunk/visu/lib/templateengine.js
===================================================================
--- CometVisu/trunk/visu/lib/templateengine.js 2011-02-20 21:10:59 UTC (rev 302)
+++ CometVisu/trunk/visu/lib/templateengine.js 2011-02-22 21:44:41 UTC (rev 303)
@@ -68,6 +68,8 @@
window.setTimeout("$.get( 'visu_config" + configSuffix + ".xml', parseXML );", 200);
// disable text selection - it's annoying on a touch screen!
+ /*
+ * Now in the CSS!
if($.browser.mozilla)
{//Firefox
$('body').css('MozUserSelect','none');
@@ -76,6 +78,7 @@
} else {//Opera, etc.
$(document).mousedown(function(){return false;});
}
+ */
} );
$(window).unload(function() {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|