mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 14:28:56 +00:00
cleaning up a little (yucc, gross)
git-svn-id: file:///svn/phpbb/trunk@8002 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
757d630522
commit
e9151c450f
2 changed files with 18 additions and 18 deletions
|
@ -5,9 +5,9 @@
|
||||||
<!-- IF S_EDIT -->
|
<!-- IF S_EDIT -->
|
||||||
|
|
||||||
<script type="text/javascript" defer="defer">
|
<script type="text/javascript" defer="defer">
|
||||||
|
<!--
|
||||||
<!-- IF S_ADD_CODE -->
|
<!-- IF S_ADD_CODE -->
|
||||||
<!--
|
|
||||||
|
|
||||||
var smiley = Array();
|
var smiley = Array();
|
||||||
<!-- BEGIN smile -->
|
<!-- BEGIN smile -->
|
||||||
smiley['{smile.SMILEY_URL}'] = Array();
|
smiley['{smile.SMILEY_URL}'] = Array();
|
||||||
|
@ -37,35 +37,30 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//-->
|
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
var toggle_options;
|
|
||||||
|
|
||||||
function toggle_select(smilie, display, select)
|
function toggle_select(smilie, display, select)
|
||||||
{
|
{
|
||||||
var disp = document.getElementById('order_disp[' + smilie + ']');
|
var disp = document.getElementById('order_disp[' + smilie + ']');
|
||||||
var nodisp = document.getElementById('order_no_disp[' + smilie + ']');
|
var nodisp = document.getElementById('order_no_disp[' + smilie + ']');
|
||||||
disp.disabled = !display;
|
disp.disabled = !display;
|
||||||
//document.getElementById('order_disp[' + smilie + ']').style = '';
|
|
||||||
nodisp.disabled = display;
|
nodisp.disabled = display;
|
||||||
//document.getElementById('order_no_disp[' + smilie + ']').style = 'display:none';
|
|
||||||
if (display)
|
if (display)
|
||||||
{
|
{
|
||||||
|
|
||||||
document.getElementById(select).selectedIndex = 0;
|
document.getElementById(select).selectedIndex = 0;
|
||||||
|
nodisp.className = 'disabled-options';
|
||||||
nodisp.style.display = 'none';
|
disp.className = '';
|
||||||
disp.style.display = '';
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
document.getElementById(select).selectedIndex = {S_ORDER_LIST_DISPLAY_COUNT};
|
document.getElementById(select).selectedIndex = {S_ORDER_LIST_DISPLAY_COUNT};
|
||||||
|
disp.className = 'disabled-options';
|
||||||
disp.style.display = 'none';
|
nodisp.className = '';
|
||||||
nodisp.style.display = '';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//-->
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
@ -124,8 +119,8 @@
|
||||||
</td>
|
</td>
|
||||||
<!-- IF ID or S_ADD -->
|
<!-- IF ID or S_ADD -->
|
||||||
<td><select id="order[{items.IMG}]" name="order[{items.IMG}]">
|
<td><select id="order[{items.IMG}]" name="order[{items.IMG}]">
|
||||||
<optgroup id="order_disp[{items.IMG}]" label="{L_DISPLAY_POSTING}" <!-- IF not items.POSTING_CHECKED -->disabled="disabled" style="display:none"<!-- ENDIF -->>{S_ORDER_LIST_DISPLAY}</optgroup>
|
<optgroup id="order_disp[{items.IMG}]" label="{L_DISPLAY_POSTING}" <!-- IF not items.POSTING_CHECKED -->disabled="disabled" class="disabled-options" <!-- ENDIF -->>{S_ORDER_LIST_DISPLAY}</optgroup>
|
||||||
<optgroup id="order_no_disp[{items.IMG}]" label="{L_DISPLAY_POSTING_NO}" <!-- IF items.POSTING_CHECKED -->disabled="disabled" style="display:none"<!-- ENDIF -->>{S_ORDER_LIST_UNDISPLAY}</optgroup>
|
<optgroup id="order_no_disp[{items.IMG}]" label="{L_DISPLAY_POSTING_NO}" <!-- IF items.POSTING_CHECKED -->disabled="disabled" class="disabled-options" <!-- ENDIF -->>{S_ORDER_LIST_UNDISPLAY}</optgroup>
|
||||||
</select></td>
|
</select></td>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
<!-- IF S_ADD -->
|
<!-- IF S_ADD -->
|
||||||
|
@ -147,7 +142,7 @@
|
||||||
<td><input type="checkbox" class="radio" name="add_display_on_posting" checked="checked" onclick="toggle_select('add', this.checked, 'add_order');"/></td>
|
<td><input type="checkbox" class="radio" name="add_display_on_posting" checked="checked" onclick="toggle_select('add', this.checked, 'add_order');"/></td>
|
||||||
<td><select id="add_order" name="add_order">
|
<td><select id="add_order" name="add_order">
|
||||||
<optgroup id="order_disp[add]" label="{L_DISPLAY_POSTING}">{S_ADD_ORDER_LIST_DISPLAY}</optgroup>
|
<optgroup id="order_disp[add]" label="{L_DISPLAY_POSTING}">{S_ADD_ORDER_LIST_DISPLAY}</optgroup>
|
||||||
<optgroup id="order_no_disp[add]" label="{L_DISPLAY_POSTING_NO}" disabled="disabled" style="display:none">{S_ADD_ORDER_LIST_UNDISPLAY}</optgroup>
|
<optgroup id="order_no_disp[add]" label="{L_DISPLAY_POSTING_NO}" disabled="disabled" class="disabled-options" >{S_ADD_ORDER_LIST_UNDISPLAY}</optgroup>
|
||||||
</select></td>
|
</select></td>
|
||||||
<td><input type="checkbox" class="radio" name="add_additional_code" value="1" /></td>
|
<td><input type="checkbox" class="radio" name="add_additional_code" value="1" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -726,6 +726,11 @@ optgroup {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
optgroup.disabled-options {
|
||||||
|
display: none;
|
||||||
|
background-color: gray;
|
||||||
|
}
|
||||||
|
|
||||||
option {
|
option {
|
||||||
padding: 0 1em 0 0;
|
padding: 0 1em 0 0;
|
||||||
color: #000;
|
color: #000;
|
||||||
|
|
Loading…
Add table
Reference in a new issue