mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 19:18:44 +02:00
- Fixed Trac #333: organizations' drop-down list is truncated on IE when the name of an organization is too long.
SVN:trunk[977]
This commit is contained in:
@@ -463,7 +463,7 @@ EOF
|
|||||||
$oAppContext = new ApplicationContext();
|
$oAppContext = new ApplicationContext();
|
||||||
$iCurrentOrganization = $oAppContext->GetCurrentValue('org_id');
|
$iCurrentOrganization = $oAppContext->GetCurrentValue('org_id');
|
||||||
$sHtml = '<div id="SiloSelection">';
|
$sHtml = '<div id="SiloSelection">';
|
||||||
$sHtml .= '<form style="display:inline" action="'.$_SERVER['PHP_SELF'].'"><select style="width:150px;font-size:x-small" name="c[org_id]" title="Pick an organization" onChange="this.form.submit();">';
|
$sHtml .= '<form style="display:inline" action="'.$_SERVER['PHP_SELF'].'"><select class="org_combo" name="c[org_id]" title="Pick an organization" onChange="this.form.submit();">';
|
||||||
$sSelected = ($iCurrentOrganization == '') ? ' selected' : '';
|
$sSelected = ($iCurrentOrganization == '') ? ' selected' : '';
|
||||||
$sHtml .= '<option value=""'.$sSelected.'>'.Dict::S('UI:AllOrganizations').'</option>';
|
$sHtml .= '<option value=""'.$sSelected.'>'.Dict::S('UI:AllOrganizations').'</option>';
|
||||||
while($oOrg = $oSet->Fetch())
|
while($oOrg = $oSet->Fetch())
|
||||||
@@ -478,7 +478,7 @@ EOF
|
|||||||
{
|
{
|
||||||
$sSelected = "";
|
$sSelected = "";
|
||||||
}
|
}
|
||||||
$sHtml .= '<option value="'.$oOrg->GetKey().'"'.$sSelected.'>'.$oOrg->GetName().'</option>';
|
$sHtml .= '<option title="'.$oOrg->GetName().'" value="'.$oOrg->GetKey().'"'.$sSelected.'>'.$oOrg->GetName().'</option>';
|
||||||
}
|
}
|
||||||
$sHtml .= '</select>';
|
$sHtml .= '</select>';
|
||||||
// Add other dimensions/context information to this form
|
// Add other dimensions/context information to this form
|
||||||
|
|||||||
@@ -889,4 +889,10 @@ tr.row_added td {
|
|||||||
}
|
}
|
||||||
a.truncated {
|
a.truncated {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.org_combo
|
||||||
|
{
|
||||||
|
font-size:x-small;
|
||||||
|
width: auto;
|
||||||
|
max-width: 200px;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user