1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 09:34:10 +02:00

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