Disable selecting text on Database schema

This commit is contained in:
Jakub Vrana 2012-03-05 22:23:36 -08:00
parent 2ca26386c2
commit f539836fd5
3 changed files with 3 additions and 2 deletions

View 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; ?>;

View 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; }

View 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