got rid of default-tab in listviews

This commit is contained in:
Sarjuuk
2013-05-21 23:01:38 +02:00
parent c5b81bd6e7
commit 3bb5b83baf
21 changed files with 5 additions and 29 deletions

View File

@@ -81,7 +81,6 @@ if (!$smarty->loadCache($cacheKey, $pageData, $filter))
// listview content // listview content
$pageData['data'] = $acvList->getListviewData(); $pageData['data'] = $acvList->getListviewData();
$pageData['params'] = ['tabs' => false];
// if we are have different cats display field // if we are have different cats display field
if ($acvList->hasDiffFields(['category'])) if ($acvList->hasDiffFields(['category']))

View File

@@ -13,9 +13,7 @@ if (!$smarty->loadCache($cacheKey, $pageData))
$pageData = array( $pageData = array(
'file' => 'class', 'file' => 'class',
'data' => $classes->getListviewData(), 'data' => $classes->getListviewData(),
'params' => array( 'params' => []
'tabs' => false
)
); );
$smarty->saveCache($cacheKey, $pageData); $smarty->saveCache($cacheKey, $pageData);

View File

@@ -26,9 +26,7 @@ if (!$smarty->loadCache($cacheKey, $pageData))
$pageData = array( $pageData = array(
'file' => 'currency', 'file' => 'currency',
'data' => $money->getListviewData(), 'data' => $money->getListviewData(),
'params' => array( 'params' => []
'tabs' => false
)
); );
$money->addGlobalsToJscript($pageData); $money->addGlobalsToJscript($pageData);

View File

@@ -51,7 +51,7 @@ if (!$smarty->loadCache($cacheKey, $pageData))
'file' => 'event', 'file' => 'event',
'data' => $events->getListviewData(), 'data' => $events->getListviewData(),
'deps' => $deps, 'deps' => $deps,
'calendar' => false, // todo: fix it Felix! 'calendar' => false, // todo (med): fix it Felix!
'params' => array( 'params' => array(
'tabs' => '$myTabs' 'tabs' => '$myTabs'
) )

View File

@@ -27,7 +27,6 @@ if (!$smarty->loadCache($cacheKey, $pageData))
// listview content // listview content
$pageData['data'] = $itemsets->getListviewData(); $pageData['data'] = $itemsets->getListviewData();
$pageData['params'] = ['tabs' => false];
// create note if search limit was exceeded // create note if search limit was exceeded
if ($itemsets->getMatches() > $AoWoWconf['sqlLimit']) if ($itemsets->getMatches() > $AoWoWconf['sqlLimit'])

View File

@@ -26,7 +26,6 @@ if (!$smarty->loadCache($cacheKey, $pageData))
'file' => 'pet', 'file' => 'pet',
'data' => $pets->getListviewData(), 'data' => $pets->getListviewData(),
'params' => array( 'params' => array(
'tabs' => false,
'visibleCols' => "$['abilities']" 'visibleCols' => "$['abilities']"
) )
); );

View File

@@ -13,9 +13,7 @@ if (!$smarty->loadCache($cacheKey, $pageData))
$pageData = array( $pageData = array(
'file' => 'race', 'file' => 'race',
'data' => $races->getListviewData(), 'data' => $races->getListviewData(),
'params' => array( 'params' => []
'tabs' => false
)
); );
$smarty->saveCache($cacheKey, $pageData); $smarty->saveCache($cacheKey, $pageData);

View File

@@ -380,7 +380,6 @@ if (!$smarty->loadCache($cacheKey, $pageData, $filter))
$spells = new SpellList($conditions, true); $spells = new SpellList($conditions, true);
$pageData['data'] = $spells->getListviewData(); $pageData['data'] = $spells->getListviewData();
$pageData['params']['tabs'] = false;
$spells->addGlobalsToJscript($pageData); $spells->addGlobalsToJscript($pageData);

View File

@@ -25,9 +25,7 @@ if (!$smarty->loadCache($cacheKey, $pageData))
$pageData = array( $pageData = array(
'file' => 'title', 'file' => 'title',
'data' => $titles->getListviewData(), 'data' => $titles->getListviewData(),
'params' => array( 'params' => []
'tabs' => false
)
); );
if ($titles->hasDiffFields(['category'])) if ($titles->hasDiffFields(['category']))

View File

@@ -2,7 +2,6 @@
new Listview({ldelim} new Listview({ldelim}
template:'achievement', template:'achievement',
{if !isset($params.id)}id:'achievements',{/if} {if !isset($params.id)}id:'achievements',{/if}
{if !isset($params.tabs)}tabs:tabsRelated,{/if}
{if !isset($params.name)}name:LANG.tab_achievements,{/if} {if !isset($params.name)}name:LANG.tab_achievements,{/if}
{if !isset($params.parent)}parent:'listview-generic',{/if} {if !isset($params.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v} {foreach from=$params key=k item=v}

View File

@@ -2,7 +2,6 @@
new Listview({ldelim} new Listview({ldelim}
template:'holidaycal', template:'holidaycal',
{if !isset($params.id)}id:'calendar',{/if} {if !isset($params.id)}id:'calendar',{/if}
{if !isset($params.tabs)}tabs:tabsRelated,{/if}
{if !isset($params.name)}name:LANG.tab_calendar,{/if} {if !isset($params.name)}name:LANG.tab_calendar,{/if}
{if !isset($params.parent)}parent:'listview-generic',{/if} {if !isset($params.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v} {foreach from=$params key=k item=v}

View File

@@ -2,7 +2,6 @@
new Listview({ldelim} new Listview({ldelim}
template:'classs', template:'classs',
{if !isset($params.id)}id:'classes',{/if} {if !isset($params.id)}id:'classes',{/if}
{if !isset($params.tabs)}tabs:'listview-generic',{/if}
{if !isset($params.name)}name:LANG.tab_classes,{/if} {if !isset($params.name)}name:LANG.tab_classes,{/if}
{if !isset($params.parent)}parent:'listview-generic',{/if} {if !isset($params.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v} {foreach from=$params key=k item=v}

View File

@@ -2,7 +2,6 @@
new Listview({ldelim} new Listview({ldelim}
template:'currency', template:'currency',
{if !isset($params.id)}id:'currencies',{/if} {if !isset($params.id)}id:'currencies',{/if}
{if !isset($params.tabs)}tabs:'listview-generic',{/if}
{if !isset($params.name)}name:LANG.tab_currencies,{/if} {if !isset($params.name)}name:LANG.tab_currencies,{/if}
{if !isset($params.parent)}parent:'listview-generic',{/if} {if !isset($params.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v} {foreach from=$params key=k item=v}

View File

@@ -2,7 +2,6 @@
new Listview({ldelim} new Listview({ldelim}
template:'holiday', template:'holiday',
{if !isset($params.id)}id:'holidays',{/if} {if !isset($params.id)}id:'holidays',{/if}
{if !isset($params.tabs)}tabs:tabsRelated,{/if}
{if !isset($params.name)}name:LANG.tab_holidays,{/if} {if !isset($params.name)}name:LANG.tab_holidays,{/if}
{if !isset($params.parent)}parent:'listview-generic',{/if} {if !isset($params.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v} {foreach from=$params key=k item=v}

View File

@@ -2,7 +2,6 @@
new Listview({ldelim} new Listview({ldelim}
template:'item', template:'item',
{if !isset($params.id)}id:'items',{/if} {if !isset($params.id)}id:'items',{/if}
{if !isset($params.tabs)}tabs:'listview-generic',{/if}
{if !isset($params.name)}name:LANG.tab_items,{/if} {if !isset($params.name)}name:LANG.tab_items,{/if}
{if !isset($params.parent)}parent:'listview-generic',{/if} {if !isset($params.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v} {foreach from=$params key=k item=v}

View File

@@ -2,7 +2,6 @@
new Listview({ldelim} new Listview({ldelim}
template:'itemset', template:'itemset',
{if !isset($params.id)}id:'itemsets',{/if} {if !isset($params.id)}id:'itemsets',{/if}
{if !isset($params.tabs)}tabs:'listview-generic',{/if}
{if !isset($params.name)}name:LANG.tab_itemsets,{/if} {if !isset($params.name)}name:LANG.tab_itemsets,{/if}
{if !isset($params.parent)}parent:'listview-generic',{/if} {if !isset($params.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v} {foreach from=$params key=k item=v}

View File

@@ -20,7 +20,6 @@ var _ = function(family)
template:'pet', template:'pet',
computeDataFunc: _, computeDataFunc: _,
{if !isset($params.id)}id:'hunter-pets',{/if} {if !isset($params.id)}id:'hunter-pets',{/if}
{if !isset($params.tabs)}tabs:'tabs-generic',{/if}
{if !isset($params.name)}name:LANG.tab_pets,{/if} {if !isset($params.name)}name:LANG.tab_pets,{/if}
{if !isset($params.parent)}parent:'listview-generic',{/if} {if !isset($params.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v} {foreach from=$params key=k item=v}

View File

@@ -2,7 +2,6 @@
new Listview({ldelim} new Listview({ldelim}
template:'quest', template:'quest',
{if !isset($params.id)}id:'quests',{/if} {if !isset($params.id)}id:'quests',{/if}
{if !isset($params.tabs)}tabs:tabsRelated,{/if}
{if !isset($params.name)}name:LANG.tab_quests,{/if} {if !isset($params.name)}name:LANG.tab_quests,{/if}
{if !isset($params.parent)}parent:'listview-generic',{/if} {if !isset($params.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v} {foreach from=$params key=k item=v}

View File

@@ -2,7 +2,6 @@
new Listview({ldelim} new Listview({ldelim}
template:'race', template:'race',
{if !isset($params.id)}id:'races',{/if} {if !isset($params.id)}id:'races',{/if}
{if !isset($params.tabs)}tabs:'listview-generic',{/if}
{if !isset($params.name)}name:LANG.tab_races,{/if} {if !isset($params.name)}name:LANG.tab_races,{/if}
{if !isset($params.parent)}parent:'listview-generic',{/if} {if !isset($params.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v} {foreach from=$params key=k item=v}

View File

@@ -2,7 +2,6 @@
new Listview({ldelim} new Listview({ldelim}
template:'spell', template:'spell',
{if !isset($params.id)}id:'spells',{/if} {if !isset($params.id)}id:'spells',{/if}
{if !isset($params.tabs)}tabs:'listview-generic',{/if}
{if !isset($params.name)}name:LANG.tab_spells,{/if} {if !isset($params.name)}name:LANG.tab_spells,{/if}
{if !isset($params.parent)}parent:'listview-generic',{/if} {if !isset($params.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v} {foreach from=$params key=k item=v}

View File

@@ -2,7 +2,6 @@
new Listview({ldelim} new Listview({ldelim}
template:'title', template:'title',
{if !isset($params.id)}id:'titles',{/if} {if !isset($params.id)}id:'titles',{/if}
{if !isset($params.tabs)}tabs:'listview-generic',{/if}
{if !isset($params.name)}name:LANG.tab_titles,{/if} {if !isset($params.name)}name:LANG.tab_titles,{/if}
{if !isset($params.parent)}parent:'listview-generic',{/if} {if !isset($params.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v} {foreach from=$params key=k item=v}