Merge remote-tracking branch 'origin/master'

This commit is contained in:
Pootle server
2011-04-27 22:40:06 +02:00
2 changed files with 3 additions and 9 deletions

View File

@@ -705,19 +705,13 @@ function setCheckboxes( container_id, state ) {
*
* @param string the form 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
*/
function setSelectOptions(the_form, the_select, 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');
}
$("form[name='"+ the_form +"'] select[name='"+the_select+"']").find("option").attr('selected', do_check);
return true;
} // end of the 'setSelectOptions()' function

View File

@@ -371,7 +371,7 @@ require_once './libraries/List.class.php';
$return = '<ul id="databaseList" xml:lang="en" dir="ltr">' . "\n";
foreach ($this->getGroupedDetails($offset, $count) as $group => $dbs) {
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
$cut = true;
} else {