Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -705,19 +705,13 @@ function setCheckboxes( container_id, state ) {
|
|||||||
*
|
*
|
||||||
* @param string the form name
|
* @param string the form name
|
||||||
* @param string the element name
|
* @param string the element name
|
||||||
* @param boolean whether to check or to uncheck the element
|
* @param boolean whether to check or to uncheck options
|
||||||
*
|
*
|
||||||
* @return boolean always true
|
* @return boolean always true
|
||||||
*/
|
*/
|
||||||
function setSelectOptions(the_form, the_select, do_check)
|
function setSelectOptions(the_form, the_select, do_check)
|
||||||
{
|
{
|
||||||
|
$("form[name='"+ the_form +"'] select[name='"+the_select+"']").find("option").attr('selected', do_check);
|
||||||
if( do_check ) {
|
|
||||||
$("form[name='"+ the_form +"']").find("select[name='"+the_select+"']").find("option").attr('selected', 'selected');
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$("form[name='"+ the_form +"']").find("select[name="+the_select+"]").find("option").removeAttr('selected');
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
} // end of the 'setSelectOptions()' function
|
} // end of the 'setSelectOptions()' function
|
||||||
|
|
||||||
|
@@ -371,7 +371,7 @@ require_once './libraries/List.class.php';
|
|||||||
$return = '<ul id="databaseList" xml:lang="en" dir="ltr">' . "\n";
|
$return = '<ul id="databaseList" xml:lang="en" dir="ltr">' . "\n";
|
||||||
foreach ($this->getGroupedDetails($offset, $count) as $group => $dbs) {
|
foreach ($this->getGroupedDetails($offset, $count) as $group => $dbs) {
|
||||||
if (count($dbs) > 1) {
|
if (count($dbs) > 1) {
|
||||||
$return .= '<li><span>' . htmlspecialchars($group) . '</span><ul>' . "\n";
|
$return .= '<li class="group"><span>' . htmlspecialchars($group) . '</span><ul>' . "\n";
|
||||||
// whether display db_name cut by the group part
|
// whether display db_name cut by the group part
|
||||||
$cut = true;
|
$cut = true;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user