The branch, master has been updated
via ccc65dd6ba25549e22d0f881705d38641a52dfe5 (commit)
via f7cb8e8cca0363d70bdf8b75da320c6505be9344 (commit)
via 8f021279ffba5b749abbb1d80e87b292efcea8a2 (commit)
via 7dccf6d9440c0dddf323d5374db39fc1c48d7d8f (commit)
from 42e1fc1533941c86b6f1017cf899ca41f29dbb06 (commit)
- Log -----------------------------------------------------------------
commit ccc65dd6ba25549e22d0f881705d38641a52dfe5
Author: Michal Čihař <mcihar(…
[View More]a)novell.com>
Date: Thu Jun 2 17:06:26 2011 +0200
Drop padding as it is not used at all because sub elements are floating
commit f7cb8e8cca0363d70bdf8b75da320c6505be9344
Author: Michal Čihař <mcihar(a)novell.com>
Date: Thu Jun 2 17:05:50 2011 +0200
Drop "bottom" line which is rendered on top
commit 8f021279ffba5b749abbb1d80e87b292efcea8a2
Author: Michal Čihař <mcihar(a)novell.com>
Date: Thu Jun 2 17:04:48 2011 +0200
Remove margin from caption, it just misalignes it with table
commit 7dccf6d9440c0dddf323d5374db39fc1c48d7d8f
Author: Michal Čihař <mcihar(a)novell.com>
Date: Thu Jun 2 17:03:14 2011 +0200
Revert "Remove div which seems to be leftover from slider removal"
This reverts commit 095e0818b8d69722fceae3ad518b74d02b488ed0.
It seems to be useful after recent fix for the broken CSS.
-----------------------------------------------------------------------
Summary of changes:
tbl_structure.php | 4 ++++
themes/pmahomme/css/theme_right.css.php | 9 ---------
2 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/tbl_structure.php b/tbl_structure.php
index 4f91e16..e2a436d 100644
--- a/tbl_structure.php
+++ b/tbl_structure.php
@@ -706,6 +706,7 @@ if (! $tbl_is_view && ! $db_is_information_schema && 'ARCHIVE' != $tbl_type) {
// BEGIN - Calc Table Space
// Get valid statistics whatever is the table type
if ($cfg['ShowStats']) {
+ echo '<div id="tablestatistics">';
if (empty($showtable)) {
$showtable = PMA_Table::sGetStatusInfo($GLOBALS['db'], $GLOBALS['table'], null, true);
}
@@ -924,6 +925,9 @@ if ($cfg['ShowStats']) {
</tbody>
</table>
+ <!-- close tablestatistics div -->
+ </div>
+
<?php
}
// END - Calc Table Space
diff --git a/themes/pmahomme/css/theme_right.css.php b/themes/pmahomme/css/theme_right.css.php
index c3a2747..17ab26c 100644
--- a/themes/pmahomme/css/theme_right.css.php
+++ b/themes/pmahomme/css/theme_right.css.php
@@ -1022,12 +1022,6 @@ form.clock {
/* table stats */
-div#tablestatistics {
- border-bottom: 0.1em solid #669999;
- margin-bottom: 0.5em;
- padding-bottom: 0.5em;
-}
-
div#tablestatistics table {
float: <?php echo $left; ?>;
margin-bottom: 0.5em;
@@ -1035,9 +1029,6 @@ div#tablestatistics table {
margin-top: 0.5em;
}
-div#tablestatistics table caption {
- margin-<?php echo $right; ?>: 0.5em;
-}
/* END table stats */
hooks/post-receive
--
phpMyAdmin
[View Less]
The branch, master has been updated
via 745877a6a0e59f8433c3b90056858a753da60330 (commit)
via 961f170b51260cf79eda34b700c37730c6d975ef (commit)
via 53431974b1abd36af205e15927b453e447797e49 (commit)
from 469624c23d97848da668c787ae15d75199ac6272 (commit)
- Log -----------------------------------------------------------------
commit 745877a6a0e59f8433c3b90056858a753da60330
Author: Michal Čihař <mcihar(a)novell.com>
Date: Thu Jun 2 16:20:37 2011 +0200
…
[View More]Fix clearing the query box for non table based SQL
commit 961f170b51260cf79eda34b700c37730c6d975ef
Author: Michal Čihař <mcihar(a)novell.com>
Date: Thu Jun 2 16:09:21 2011 +0200
Whitespace cleanup
commit 53431974b1abd36af205e15927b453e447797e49
Author: Michal Čihař <mcihar(a)novell.com>
Date: Thu Jun 2 16:08:25 2011 +0200
Remove obsolete comment
-----------------------------------------------------------------------
Summary of changes:
js/functions.js | 26 ++++++++++++++++++--------
js/sql.js | 16 ++++++++--------
libraries/header_scripts.inc.php | 1 -
3 files changed, 26 insertions(+), 17 deletions(-)
diff --git a/js/functions.js b/js/functions.js
index 98dbd1d..a8595a1 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -724,15 +724,31 @@ function setSelectOptions(the_form, the_select, do_check)
return true;
} // end of the 'setSelectOptions()' function
+/**
+ * Sets current value for query box.
+ */
+function setQuery(query) {
+ if (codemirror_editor) {
+ codemirror_editor.setValue(query);
+ } else {
+ document.sqlform.sql_query.value = query;
+ }
+}
+
/**
* Create quick sql statements.
*
*/
function insertQuery(queryType) {
+ if (queryType == "clear") {
+ setQuery('');
+ return;
+ }
+
var myQuery = document.sqlform.sql_query;
- var myListBox = document.sqlform.dummy;
var query = "";
+ var myListBox = document.sqlform.dummy;
var table = document.sqlform.table.value;
if (myListBox.options.length > 0) {
@@ -762,14 +778,8 @@ function insertQuery(queryType) {
query = "UPDATE `" + table + "` SET " + editDis + " WHERE 1";
} else if(queryType == "delete") {
query = "DELETE FROM `" + table + "` WHERE 1";
- } else if(queryType == "clear") {
- query = "";
- }
- if (codemirror_editor) {
- codemirror_editor.setValue(query);
- } else {
- document.sqlform.sql_query.value = query;
}
+ setQuery(query);
sql_box_locked = false;
}
}
diff --git a/js/sql.js b/js/sql.js
index b334b5f..e4f8323 100644
--- a/js/sql.js
+++ b/js/sql.js
@@ -365,7 +365,7 @@ $(document).ready(function() {
$("#sqlqueryresults").html(data);
$("#sqlqueryresults").trigger('appendAnchor');
PMA_init_slider();
-
+
PMA_ajaxRemoveMessage($msgbox);
}) // end $.post()
})// end Paginate results table
@@ -388,7 +388,7 @@ $(document).ready(function() {
$("#sqlqueryresults").html(data);
$("#sqlqueryresults").trigger('appendAnchor');
PMA_init_slider();
- PMA_ajaxRemoveMessage($msgbox);
+ PMA_ajaxRemoveMessage($msgbox);
}) // end $.post()
} else {
$the_form.submit();
@@ -456,7 +456,7 @@ $(document).ready(function() {
$edit_td.removeClass('inline_edit_anchor').addClass('inline_edit_active').parent('tr').addClass('noclick');
// Adding submit and hide buttons to inline edit <td>.
- // For "hide" button the original data to be restored is
+ // For "hide" button the original data to be restored is
// kept in the jQuery data element 'original_data' inside the <td>.
// Looping through all columns or rows, to find the required data and then storing it in an array.
@@ -840,7 +840,7 @@ $(document).ready(function() {
*/
var relation_fields = {};
/**
- * @var relational_display string 'K' if relational key, 'D' if relational display column
+ * @var relational_display string 'K' if relational key, 'D' if relational display column
*/
var relational_display = $("#relational_display_K").attr('checked') ? 'K' : 'D';
/**
@@ -858,7 +858,7 @@ $(document).ready(function() {
var sql_query = 'UPDATE `' + window.parent.table + '` SET ';
var need_to_post = false;
-
+
var new_clause = '';
var prev_index = -1;
@@ -930,7 +930,7 @@ $(document).ready(function() {
}
})
- /*
+ /*
* update the where_clause, remove the last appended ' AND '
* */
@@ -1004,10 +1004,10 @@ $(document).ready(function() {
/**
- * Visually put back the row in the state it was before entering Inline edit
+ * Visually put back the row in the state it was before entering Inline edit
*
* (when called in the situation where no posting was done, the data
- * parameter is empty)
+ * parameter is empty)
*/
function PMA_unInlineEditRow($del_hide, $chg_submit, $this_td, $input_siblings, data, disp_mode) {
diff --git a/libraries/header_scripts.inc.php b/libraries/header_scripts.inc.php
index 98b28c4..2e0a9ca 100644
--- a/libraries/header_scripts.inc.php
+++ b/libraries/header_scripts.inc.php
@@ -40,7 +40,6 @@ if (isset($GLOBALS['db'])) {
}
$GLOBALS['js_include'][] = 'messages.php' . PMA_generate_common_url($params);
$GLOBALS['js_include'][] = 'codemirror/lib/codemirror.js';
-/* We should rather use/define MySQL mode here */
$GLOBALS['js_include'][] = 'codemirror/mode/mysql/mysql.js';
/**
hooks/post-receive
--
phpMyAdmin
[View Less]