Save bytes

This commit is contained in:
Jakub Vrana 2012-03-06 00:47:33 -08:00
parent 22125790b3
commit b959ba41c6
2 changed files with 3 additions and 3 deletions

View file

@ -51,8 +51,8 @@ foreach (table_status() as $table_status) {
?>
<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; ?>;
var tablePos = {<?php echo implode(",", $table_pos_js) . "\n"; ?>};
var em = document.getElementById('schema').offsetHeight / <?php echo $top; ?>;
document.onmousemove = schemaMousemove;
document.onmouseup = function (ev) {
schemaMouseup(ev, '<?php echo js_escape(DB); ?>');

View file

@ -393,7 +393,7 @@ function indexesAddColumn(field, prefix) {
var that, x, y, em, tablePos;
var that, x, y; // em and tablePos defined in schema.inc.php
/** Get mouse position
* @param HTMLElement