- Disable text selection on IE 9.

This commit is contained in:
Paulo Gustavo Veiga 2012-06-24 21:51:04 -03:00
parent 5b966d870f
commit 65e7f2ce63
9 changed files with 18 additions and 17 deletions

View File

@ -207,7 +207,7 @@ mindplot.widget.Menu = new Class({
} }
this._addButton('export', false, false, function() { this._addButton('export', false, false, function() {
var reqDialog = new MooDialog.Request('c/iframeWrapper.htm?url=c/maps/' + mapId + "/exportf", null, var reqDialog = new MooDialog.Request('/c/iframeWrapper.htm?url=c/maps/' + mapId + "/exportf", null,
{'class': 'modalDialog exportModalDialog', {'class': 'modalDialog exportModalDialog',
closeButton:true, closeButton:true,
destroyOnClose:true, destroyOnClose:true,
@ -223,7 +223,7 @@ mindplot.widget.Menu = new Class({
this._registerTooltip('export', "Export"); this._registerTooltip('export', "Export");
this._addButton('print', false, false, function() { this._addButton('print', false, false, function() {
window.open('c/maps/' + mapId + '/print'); window.open('/c/maps/' + mapId + '/print');
}); });
this._registerTooltip('print', "Print"); this._registerTooltip('print', "Print");
@ -348,7 +348,7 @@ mindplot.widget.Menu = new Class({
var shareElem = $('shareIt'); var shareElem = $('shareIt');
if (shareElem) { if (shareElem) {
this._addButton('shareIt', false, false, function() { this._addButton('shareIt', false, false, function() {
var reqDialog = new MooDialog.Request('c/iframeWrapper?url=c/maps/' + mapId + "/sharef", null, var reqDialog = new MooDialog.Request('/c/iframeWrapper?url=c/maps/' + mapId + "/sharef", null,
{'class': 'modalDialog shareModalDialog', {'class': 'modalDialog shareModalDialog',
closeButton:true, closeButton:true,
destroyOnClose:true, destroyOnClose:true,
@ -368,7 +368,7 @@ mindplot.widget.Menu = new Class({
var publishElem = $('publishIt'); var publishElem = $('publishIt');
if (publishElem) { if (publishElem) {
this._addButton('publishIt', false, false, function() { this._addButton('publishIt', false, false, function() {
var reqDialog = new MooDialog.Request('c/iframeWrapper?url=c/maps/' + mapId + "/publishf", null, var reqDialog = new MooDialog.Request('/c/iframeWrapper?url=c/maps/' + mapId + "/publishf", null,
{'class': 'modalDialog publishModalDialog', {'class': 'modalDialog publishModalDialog',
closeButton:true, closeButton:true,
destroyOnClose:true, destroyOnClose:true,
@ -389,7 +389,7 @@ mindplot.widget.Menu = new Class({
if (historyElem) { if (historyElem) {
this._addButton('history', false, false, function() { this._addButton('history', false, false, function() {
var reqDialog = new MooDialog.Request('c/iframeWrapper?url=c/maps/' + mapId + "/historyf", null, var reqDialog = new MooDialog.Request('/c/iframeWrapper?url=c/maps/' + mapId + "/historyf", null,
{'class': 'modalDialog historyModalDialog', {'class': 'modalDialog historyModalDialog',
closeButton:true, closeButton:true,
destroyOnClose:true, destroyOnClose:true,

View File

@ -51,11 +51,6 @@ body {
font: 13px arial, helvetica, clean, sans-serif; font: 13px arial, helvetica, clean, sans-serif;
font-size: small; font-size: small;
font: x-small; font: x-small;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;
} }
table { table {

View File

@ -7,6 +7,12 @@
@import "header.less"; @import "header.less";
body { body {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
overflow:hidden; overflow:hidden;
} }

View File

@ -216,7 +216,7 @@
<div id="dragTextNode" class="textNode">Text Node !!</div> <div id="dragTextNode" class="textNode">Text Node !!</div>
</div> </div>
<div id="mindplot"></div> <div id="mindplot" onselectstart="return false;"></div>
<script type="text/javascript" src="js/editor.js"></script> <script type="text/javascript" src="js/editor.js"></script>
</body> </body>
</html> </html>

View File

@ -21,7 +21,7 @@
<script type="text/javascript"> <script type="text/javascript">
var mapId = 'welcome'; var mapId = 'test';
$(document).addEvent('loadcomplete', function(resource) { $(document).addEvent('loadcomplete', function(resource) {
var options = loadDesignerOptions(); var options = loadDesignerOptions();
var designer = buildDesigner(options); var designer = buildDesigner(options);
@ -126,7 +126,7 @@
</div> </div>
</div> </div>
<div id="mindplot"></div> <div id="mindplot" onselectstart="return false;"></div>
<script type="text/javascript" src="js/editor.js"></script> <script type="text/javascript" src="js/editor.js"></script>
</body> </body>
</html> </html>

View File

@ -135,7 +135,7 @@
</div> </div>
</div> </div>
<div id="mindplot"></div> <div id="mindplot" onselectstart="return false;"></div>
<script type="text/javascript" src="js/editor.js"></script> <script type="text/javascript" src="js/editor.js"></script>
</body> </body>
</html> </html>

View File

@ -51,7 +51,7 @@
</div> </div>
</div> </div>
<div id="mindplot"></div> <div id="mindplot" onselectstart="return false;"></div>
<script type="text/javascript" src="js/editor.js"></script> <script type="text/javascript" src="js/editor.js"></script>
</body> </body>
</html> </html>

View File

@ -77,7 +77,7 @@
<%@ include file="/jsp/mindmapEditorToolbar.jsf" %> <%@ include file="/jsp/mindmapEditorToolbar.jsf" %>
</div> </div>
<div id="mindplot"></div> <div id="mindplot" onselectstart="return false;"></div>
<script type="text/javascript" src="js/editor.js"></script> <script type="text/javascript" src="js/editor.js"></script>
</body> </body>
</html> </html>

View File

@ -71,7 +71,7 @@
</head> </head>
<body> <body>
<div id="mapContainer"> <div id="mapContainer">
<div id="mindplot"></div> <div id="mindplot" onselectstart="return false;"></div>
<div id="embFooter"> <div id="embFooter">
<a href="${pageContext.request.contextPath}/c/home" target="new"> <a href="${pageContext.request.contextPath}/c/home" target="new">