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
$pageData['data'] = $acvList->getListviewData();
$pageData['params'] = ['tabs' => false];
// if we are have different cats display field
if ($acvList->hasDiffFields(['category']))

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -2,7 +2,6 @@
new Listview({ldelim}
template:'achievement',
{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.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v}

View File

@@ -2,7 +2,6 @@
new Listview({ldelim}
template:'holidaycal',
{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.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v}

View File

@@ -2,7 +2,6 @@
new Listview({ldelim}
template:'classs',
{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.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v}

View File

@@ -2,7 +2,6 @@
new Listview({ldelim}
template:'currency',
{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.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v}

View File

@@ -2,7 +2,6 @@
new Listview({ldelim}
template:'holiday',
{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.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v}

View File

@@ -2,7 +2,6 @@
new Listview({ldelim}
template:'item',
{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.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v}

View File

@@ -2,7 +2,6 @@
new Listview({ldelim}
template:'itemset',
{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.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v}

View File

@@ -20,7 +20,6 @@ var _ = function(family)
template:'pet',
computeDataFunc: _,
{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.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v}

View File

@@ -2,7 +2,6 @@
new Listview({ldelim}
template:'quest',
{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.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v}

View File

@@ -2,7 +2,6 @@
new Listview({ldelim}
template:'race',
{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.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v}

View File

@@ -2,7 +2,6 @@
new Listview({ldelim}
template:'spell',
{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.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v}

View File

@@ -2,7 +2,6 @@
new Listview({ldelim}
template:'title',
{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.parent)}parent:'listview-generic',{/if}
{foreach from=$params key=k item=v}