mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-23 13:19:56 +09:00
Issue 2380: Admin UI Refactoring - Advanced - Layouts
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11610 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2d4b235146
commit
b8eb83cd94
16 changed files with 219 additions and 1313 deletions
|
|
@ -891,6 +891,29 @@ $('.filebox')
|
|||
|
||||
$.exec_json('module.getFileBoxListHtml', {'page': '1'}, on_complete);
|
||||
});
|
||||
// Details toggle in admin table
|
||||
var simpleBtn = $('.x .dsTg .__simple');
|
||||
var detailBtn = $('.x .dsTg .__detail');
|
||||
var tdTitle = $('.x .dsTg td.title');
|
||||
tdTitle.each(function(){
|
||||
var $t = $(this)
|
||||
if($t.find('p.update').length==0){
|
||||
$t.addClass('tg').find('>*:not(:first-child)').hide();
|
||||
} else {
|
||||
$t.addClass('up');
|
||||
}
|
||||
});
|
||||
var details = $('.x .dsTg td.tg>*:not(:first-child)');
|
||||
simpleBtn.click(function(){
|
||||
details.slideUp(200);
|
||||
detailBtn.removeClass('x_active');
|
||||
simpleBtn.addClass('x_active');
|
||||
});
|
||||
detailBtn.click(function(){
|
||||
details.slideDown(200);
|
||||
detailBtn.addClass('x_active');
|
||||
simpleBtn.removeClass('x_active');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue