]> git.joonet.de Git - adminer.git/commitdiff
Disable selecting text on Database schema
authorJakub Vrana <jakub@vrana.cz>
Tue, 6 Mar 2012 06:23:36 +0000 (22:23 -0800)
committerJakub Vrana <jakub@vrana.cz>
Tue, 6 Mar 2012 06:23:36 +0000 (22:23 -0800)
adminer/schema.inc.php
adminer/static/default.css
changes.txt

index d6f02873e8c47d656d3946eec3db7d40472c9ee7..5c05bf7f9254eb1f46e05598b19aa4af9de7a03f 100644 (file)
@@ -49,7 +49,7 @@ foreach (table_status() as $table_status) {
 }
 
 ?>
-<div id="schema" style="height: <?php echo $top; ?>em;">
+<div id="schema" style="height: <?php echo $top; ?>em;" onselectstart="return false;">
 <script type="text/javascript">
 tablePos = {<?php echo implode(",", $table_pos_js) . "\n"; ?>};
 em = document.getElementById('schema').offsetHeight / <?php echo $top; ?>;
index 26f5a7e69de4def2ee73e8d5cf69d21d5d8bce1a..763d25434e5c3b71d641c46d73dc0e42396af512 100644 (file)
@@ -52,7 +52,7 @@ input[type=image] { vertical-align: middle; }
 #loader { display: none; position: fixed; top: 2px; right: 2px; z-index: 1; }
 #h1 { color: #777; text-decoration: none; font-style: italic; }
 #version { font-size: 67%; color: red; }
-#schema { margin-left: 60px; position: relative; }
+#schema { margin-left: 60px; position: relative; -moz-user-select: none; -webkit-user-select: none; }
 #schema .table { border: 1px solid silver; padding: 0 2px; cursor: move; position: absolute; }
 #schema .references { position: absolute; }
 
index 8cc167783cf1189f8c9d9bc489d5a8d5c61d4174..b7ab27b9d31949e5bdd5faaf2c79d336927562ea 100644 (file)
@@ -9,6 +9,7 @@ Esc to cancel AJAX request
 Move AJAX loading indicator to the right
 Don't quote bit type in export
 Don't check row while selecting text
+Disable selecting text on Database schema
 Ability to disable export (customization)
 Extensible list of databases (customization)
 MySQL: set autocommit after connect