Upon clicking on a result row, de/activate the checkbox next to it. Only makes sense for horizontal mode. Can be deactivated by setting BrowseMarkerColor to an empty string in config.inc.php.
This commit is contained in:
@@ -5,6 +5,12 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2004-01-05 Garvin Hicking <returnofthegarv@supergarv.de>
|
||||
* libraries/display_tbl.lib.php, libraries/display_tbl_links.lib.php,
|
||||
libraries/functions.js: Upon clicking on a result row, de/activate
|
||||
the checkbox next to it. Only makes sense for horizontal mode. Can be
|
||||
deactivated by setting BrowseMarkerColor to an empty string in config.inc.php.
|
||||
|
||||
2004-01-05 Alexander M. Turek <rumors@derrabus.de>
|
||||
* tbl_properties_operations.php: Changing a table's charset changed the
|
||||
charset of all fields (MySQL >= 4.1.1).
|
||||
|
@@ -1490,7 +1490,7 @@ function PMA_displayTableBody(&$dt_result, &$is_display, $map, $analyzed_sql)
|
||||
|
||||
if (!empty($del_url)) {
|
||||
$vertical_display['row_delete'][$row_no] .= ' <td width="10" align="center" valign="' . ($bookmark_go != '' ? 'top' : 'middle') . '" bgcolor="' . $bgcolor . '">' . "\n"
|
||||
. ' <input type="checkbox" name="rows_to_delete[' . $uva_condition . ']" value="' . $del_query . '" />' . "\n"
|
||||
. ' <input type="checkbox" id="id_rows_to_delete' . $row_no . '" name="rows_to_delete[' . $uva_condition . ']" value="' . $del_query . '" />' . "\n"
|
||||
. ' </td>' . "\n";
|
||||
} else {
|
||||
unset($vertical_display['row_delete'][$row_no]);
|
||||
|
@@ -4,7 +4,7 @@
|
||||
|
||||
if (!empty($del_url)) {
|
||||
echo ' <td width="10" align="center" valign="' . ($bookmark_go != '' ? 'top' : 'middle') . '" bgcolor="' . $bgcolor . '">' . "\n"
|
||||
. ' <input type="checkbox" name="rows_to_delete[' . $uva_condition . ']" value="' . $del_query . '" />' . "\n"
|
||||
. ' <input type="checkbox" id="id_rows_to_delete' . $row_no . '" name="rows_to_delete[' . $uva_condition . ']" value="' . $del_query . '" />' . "\n"
|
||||
. ' </td>' . "\n";
|
||||
}
|
||||
if (!empty($edit_url)) {
|
||||
|
@@ -423,6 +423,7 @@ function setPointer(theRow, theRowNum, theAction, theDefaultColor, thePointerCol
|
||||
else if (theAction == 'click' && theMarkColor != '') {
|
||||
newColor = theMarkColor;
|
||||
marked_row[theRowNum] = true;
|
||||
document.getElementById('id_rows_to_delete' + theRowNum).checked = true;
|
||||
}
|
||||
}
|
||||
// 4.1.2 Current color is the pointer one
|
||||
@@ -434,6 +435,7 @@ function setPointer(theRow, theRowNum, theAction, theDefaultColor, thePointerCol
|
||||
else if (theAction == 'click' && theMarkColor != '') {
|
||||
newColor = theMarkColor;
|
||||
marked_row[theRowNum] = true;
|
||||
document.getElementById('id_rows_to_delete' + theRowNum).checked = true;
|
||||
}
|
||||
}
|
||||
// 4.1.3 Current color is the marker one
|
||||
@@ -445,6 +447,7 @@ function setPointer(theRow, theRowNum, theAction, theDefaultColor, thePointerCol
|
||||
marked_row[theRowNum] = (typeof(marked_row[theRowNum]) == 'undefined' || !marked_row[theRowNum])
|
||||
? true
|
||||
: null;
|
||||
document.getElementById('id_rows_to_delete' + theRowNum).checked = false;
|
||||
}
|
||||
} // end 4
|
||||
|
||||
|
Reference in New Issue
Block a user