* Adjust the code.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
$(function()
|
||||
{
|
||||
$object = $('.btn-toolbar.pull-left');
|
||||
while(true)
|
||||
{
|
||||
if($object.children(':first-child').hasClass('divider'))
|
||||
{
|
||||
$object.children(':first-child').remove();
|
||||
continue;
|
||||
}
|
||||
if($object.children(':last-child').hasClass('divider'))
|
||||
{
|
||||
$object.children(':last-child').remove();
|
||||
continue;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
})
|
||||
@@ -4,13 +4,15 @@
|
||||
<?php
|
||||
foreach($lang->custom->object as $object => $name)
|
||||
{
|
||||
if(strpos('story|todo|block', $object) !== false and count($lang->custom->object) > 1) echo "<span class='divider'></span>";
|
||||
if(strpos('story|todo|block', $object) !== false) echo "<span class='divider'></span>";
|
||||
if(strpos('execution|product', $object) !== false) common::printLink('custom', $object, "", "<span class='text'>{$lang->custom->$object}</span>", '', "class='btn btn-link' id='{$object}Tab'");
|
||||
if(strpos('execution|product', $object) === false) common::printLink('custom', 'set', "module=$object&field=" . key($lang->custom->{$object}->fields), "<span class='text'>{$name}</span>", '', "class='btn btn-link' id='{$object}Tab'");
|
||||
if($object == 'user') common::printLink('custom', 'required', "", "<span class='text'>{$lang->custom->required}</span>", '', "class='btn btn-link' id='requiredTab'");
|
||||
}
|
||||
|
||||
foreach($lang->custom->system as $sysObject)
|
||||
{
|
||||
if($sysObject == 'required') continue;
|
||||
common::printLink('custom', $sysObject, "", "<span class='text'>{$lang->custom->$sysObject}</span>", '', "class='btn btn-link' id='{$sysObject}Tab'");
|
||||
}
|
||||
if((isset($config->systemMode) and $config->systemMode == 'classic') || (isset($config->global->upgradeStep) and $config->global->upgradeStep == 'mergeProgram'))
|
||||
|
||||
Reference in New Issue
Block a user