mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 15:19:57 +09:00
Issue 2443. Pagination UI guide update.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11520 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
136e3cb772
commit
f5a31284f1
4 changed files with 601 additions and 22 deletions
|
|
@ -9,17 +9,28 @@ jQuery(function($){
|
|||
|
||||
// TARGET toggle
|
||||
$('.x [data-toggle]').click(function(){
|
||||
$($(this).attr('data-toggle')).toggle();
|
||||
var $this = $(this);
|
||||
var $target = $($this.attr('data-toggle'));
|
||||
$target.toggle();
|
||||
if($target.is(':visible') && !$target.find('a,input,button,textarea,select').length){
|
||||
$target.attr('tabindex','0').focus();
|
||||
} else if($target.is(':visible') && $target.find('a,input,button,textarea,select').length) {
|
||||
$target.find('a,input,button,textarea,select').eq(0).focus();
|
||||
} else {
|
||||
$this.focus();
|
||||
}
|
||||
return false;
|
||||
});
|
||||
// TARGET show
|
||||
$('.x [data-show]').click(function(){
|
||||
$($(this).attr('data-show')).show();
|
||||
$($(this).attr('data-show')).show().attr('tabindex','0').focus();
|
||||
return false;
|
||||
});
|
||||
// TARGET hide
|
||||
$('.x [data-hide]').click(function(){
|
||||
$($(this).attr('data-hide')).hide();
|
||||
var $this = $(this);
|
||||
$($this.attr('data-hide')).hide();
|
||||
$this.focus();
|
||||
return false;
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue