Admin UI minor update. Layer open JS added.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11249 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2012-09-16 06:28:57 +00:00
parent 613f5ae401
commit b0e4c4a044
2 changed files with 12 additions and 2 deletions

View file

@ -6,11 +6,16 @@ jQuery(function($){
$('.x .skipNav>a').click(function(){ $('.x .skipNav>a').click(function(){
$($(this).attr('href')).attr('tabindex','0').css('outline','0').focus(); $($(this).attr('href')).attr('tabindex','0').css('outline','0').focus();
}); });
// Content Toggle // Layer Toggle
$('.x [data-toggle^="#"]').click(function(){ $('.x [data-toggle^="#"]').click(function(){
$($(this).attr('data-toggle')).toggle(); $($(this).attr('data-toggle')).toggle();
return false; return false;
}); });
// Open Layer
$('.x [data-open^="#"]').click(function(){
$($(this).attr('data-open')).open();
return false;
});
// Close Layer // Close Layer
$('.x [data-close^="#"]').click(function(){ $('.x [data-close^="#"]').click(function(){
$($(this).attr('data-close')).hide(); $($(this).attr('data-close')).hide();

View file

@ -6,11 +6,16 @@ jQuery(function($){
$('.x .skipNav>a').click(function(){ $('.x .skipNav>a').click(function(){
$($(this).attr('href')).attr('tabindex','0').css('outline','0').focus(); $($(this).attr('href')).attr('tabindex','0').css('outline','0').focus();
}); });
// Content Toggle // Layer Toggle
$('.x [data-toggle^="#"]').click(function(){ $('.x [data-toggle^="#"]').click(function(){
$($(this).attr('data-toggle')).toggle(); $($(this).attr('data-toggle')).toggle();
return false; return false;
}); });
// Open Layer
$('.x [data-open^="#"]').click(function(){
$($(this).attr('data-open')).open();
return false;
});
// Close Layer // Close Layer
$('.x [data-close^="#"]').click(function(){ $('.x [data-close^="#"]').click(function(){
$($(this).attr('data-close')).hide(); $($(this).attr('data-close')).hide();