Browse files

Save bytes

  • Loading branch information...
1 parent 2212579 commit b959ba41c698e26ac2f2a4c36d0b907cc689202c @vrana committed Mar 6, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 adminer/schema.inc.php
  2. +1 −1 adminer/static/editing.js
View
4 adminer/schema.inc.php
@@ -51,8 +51,8 @@
?>
<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
2 adminer/static/editing.js
@@ -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

0 comments on commit b959ba4

Please sign in to comment.