]> git.joonet.de Git - adminer.git/commitdiff
Add jsonly class to JS checkboxes
authorJakub Vrana <jakub@vrana.cz>
Mon, 20 Feb 2017 14:11:47 +0000 (15:11 +0100)
committerJakub Vrana <jakub@vrana.cz>
Mon, 20 Feb 2017 14:11:47 +0000 (15:11 +0100)
adminer/db.inc.php
adminer/select.inc.php
editor/db.inc.php

index b3984e7f377bf54c51c9ff8768181d770a63a43d..7f09c8c866e3c9bdfc97609c53ce177530809de6 100644 (file)
@@ -64,7 +64,7 @@ if ($adminer->homepage()) {
                        }
                        echo "<table cellspacing='0' class='nowrap checkable' onclick='tableClick(event);' ondblclick='tableClick(event, true);'>\n";
 
-                       echo '<thead><tr class="wrap"><td><input id="check-all" type="checkbox" onclick="formCheck(this, /^(tables|views)\[/);">';
+                       echo '<thead><tr class="wrap"><td><input id="check-all" type="checkbox" onclick="formCheck(this, /^(tables|views)\[/);" class="jsonly">';
                        $doc_link = doc_link(array('sql' => 'show-table-status.html'));
                        echo '<th>' . lang('Table');
                        echo '<td>' . lang('Engine') . doc_link(array('sql' => 'storage-engines.html'));
index 9f9f5eb3644f54d825d8f7dddfff07610b45dfca..46f297cf438903df33b4928d8c1ae389a7252a8c 100644 (file)
@@ -298,7 +298,7 @@ if (!$columns && support("table")) {
                        $backward_keys = $adminer->backwardKeys($TABLE, $table_name);
 
                        echo "<table id='table' cellspacing='0' class='nowrap checkable' onclick='tableClick(event);' ondblclick='tableClick(event, true);' onkeydown='return editingKeydown(event);'>\n";
-                       echo "<thead><tr>" . (!$group && $select ? "" : "<td><input type='checkbox' id='all-page' onclick='formCheck(this, /check/);'> <a href='" . h($_GET["modify"] ? remove_from_uri("modify") : $_SERVER["REQUEST_URI"] . "&modify=1") . "'>" . lang('Modify') . "</a>");
+                       echo "<thead><tr>" . (!$group && $select ? "" : "<td><input type='checkbox' id='all-page' onclick='formCheck(this, /check/);' class='jsonly'> <a href='" . h($_GET["modify"] ? remove_from_uri("modify") : $_SERVER["REQUEST_URI"] . "&modify=1") . "'>" . lang('Modify') . "</a>");
                        $names = array();
                        $functions = array();
                        reset($select);
index 0fffc6f06a92b9ba1c1d63ba345f20056dd5104e..a3349601cd0928a36edb4211e1a98ca167086463 100644 (file)
@@ -8,7 +8,7 @@ if ($adminer->homepage()) {
                search_tables();
        }
        echo "<table cellspacing='0' class='nowrap checkable' onclick='tableClick(event);'>\n";
-       echo '<thead><tr class="wrap"><td><input id="check-all" type="checkbox" onclick="formCheck(this, /^tables\[/);"><th>' . lang('Table') . '<td>' . lang('Rows') . "</thead>\n";
+       echo '<thead><tr class="wrap"><td><input id="check-all" type="checkbox" onclick="formCheck(this, /^tables\[/);" class="jsonly"><th>' . lang('Table') . '<td>' . lang('Rows') . "</thead>\n";
        
        foreach (table_status() as $table => $row) {
                $name = $adminer->tableName($row);