mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 00:29:58 +09:00
issue 522 memory collapsing stat in cookie
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9672 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6e3f1b1aa0
commit
ca72163edd
2 changed files with 4 additions and 1 deletions
|
|
@ -201,9 +201,12 @@ $('form.siteMap')
|
||||||
|
|
||||||
$('a.tgMap').click(function() {
|
$('a.tgMap').click(function() {
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
|
var curToggleStatus = getCookie('sitemap_toggle_'+$this.attr('href'));
|
||||||
|
var toggleStatus = curToggleStatus == 1 ? '0' : 1;
|
||||||
|
|
||||||
$($this.attr('href')).slideToggle('fast');
|
$($this.attr('href')).slideToggle('fast');
|
||||||
$this.closest('.siteMap').toggleClass('fold');
|
$this.closest('.siteMap').toggleClass('fold');
|
||||||
|
setCookie('sitemap_toggle_'+$this.attr('href'), toggleStatus);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ xe.lang.confirm_delete = "{$lang->confirm_delete}";
|
||||||
|
|
||||||
<h2 class="h2"><input name="title" value="{$value->title}" /></h2>
|
<h2 class="h2"><input name="title" value="{$value->title}" /></h2>
|
||||||
<a href="#nav_{$key}" class="tgMap">{$lang->collapsing}/{$lang->expanding}</a>
|
<a href="#nav_{$key}" class="tgMap">{$lang->collapsing}/{$lang->expanding}</a>
|
||||||
<ul class="lined" id="nav_{$key}" cond="count($value->menuItems->list > 0)">
|
<ul class="lined" id="nav_{$key}" cond="count($value->menuItems->list > 0)" <!--@if(!$_COOKIE['sitemap_toggle_#nav_'.$key])-->style="display:none;"<!--@end-->>
|
||||||
<block loop="$value->menuItems->list=>$key2,$value2">
|
<block loop="$value->menuItems->list=>$key2,$value2">
|
||||||
{@$item = $value2}
|
{@$item = $value2}
|
||||||
<include target="sitemap.item.html" />
|
<include target="sitemap.item.html" />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue