mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Panel management related code added
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11313 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
66cdae394f
commit
a9f1bde25e
3 changed files with 57 additions and 78 deletions
|
|
@ -6,6 +6,7 @@ jQuery(function($){
|
|||
$('.x .skipNav>a').click(function(){
|
||||
$($(this).attr('href')).attr('tabindex','0').css('outline','0').focus();
|
||||
});
|
||||
/*
|
||||
// TARGET toggle
|
||||
$('.x [data-toggle]').click(function(){
|
||||
$($(this).attr('data-toggle')).toggle();
|
||||
|
|
@ -21,6 +22,7 @@ jQuery(function($){
|
|||
$($(this).attr('data-hide')).hide();
|
||||
return false;
|
||||
});
|
||||
*/
|
||||
// Tab Navigation
|
||||
var $tabbable = $('.x .x_tabbable');
|
||||
$tabbable.find('.x_tab-pane:not(".x_active")').hide();
|
||||
|
|
|
|||
75
modules/admin/tpl/js/admin.min.js
vendored
75
modules/admin/tpl/js/admin.min.js
vendored
|
|
@ -1,72 +1,3 @@
|
|||
/* NHN (developers@xpressengine.com) */
|
||||
jQuery(function($){
|
||||
// iSO mobile device toolbar remove
|
||||
window.top.scrollTo(0,0);
|
||||
// Skip to content
|
||||
$('.x .skipNav>a').click(function(){
|
||||
$($(this).attr('href')).attr('tabindex','0').css('outline','0').focus();
|
||||
});
|
||||
// TARGET toggle
|
||||
$('.x [data-toggle]').click(function(){
|
||||
$($(this).attr('data-toggle')).toggle();
|
||||
return false;
|
||||
});
|
||||
// TARGET show
|
||||
$('.x [data-show]').click(function(){
|
||||
$($(this).attr('data-show')).show();
|
||||
return false;
|
||||
});
|
||||
// TARGET hide
|
||||
$('.x [data-hide]').click(function(){
|
||||
$($(this).attr('data-hide')).hide();
|
||||
return false;
|
||||
});
|
||||
// Tab Navigation
|
||||
var $tabbable = $('.x .x_tabbable');
|
||||
$tabbable.find('.x_tab-pane:not(".x_active")').hide();
|
||||
$tabbable.find('.x_nav-tabs>li>a').click(function(){
|
||||
var $this = $(this);
|
||||
$this.parent('li').addClass('x_active').siblings().removeClass('x_active');
|
||||
$tabbable.find($this.attr('href')).addClass('x_active').show().siblings().removeClass('x_active').hide();
|
||||
return false;
|
||||
});
|
||||
// GNB Height 100%
|
||||
var $xBody = $('.x>.body');
|
||||
var $xContent = $xBody.find('>.content');
|
||||
var $xGnb = $xBody.find('>.gnb');
|
||||
var $xGnb_li = $xGnb.find('>ul>li');
|
||||
$(window).resize(function(){
|
||||
setTimeout(function(){
|
||||
if($(window).width() >= 980){ // Over than 1024px
|
||||
$xGnb.height('auto').height($xBody.height());
|
||||
} else { // Less than 1024
|
||||
$xGnb.height('auto');
|
||||
}
|
||||
}, 100);
|
||||
}).resize();
|
||||
// GNB Click toggle
|
||||
// Add virtual class
|
||||
$xGnb_li.find('>ul').prev('a').addClass('virtual');
|
||||
// Virtual click
|
||||
$xGnb_li.find('>a.virtual')
|
||||
.bind('click focus', function(){
|
||||
var $this = $(this);
|
||||
// Submenu toggle
|
||||
if(!$xGnb.hasClass('all')) {
|
||||
$xGnb_li.not($this.parent('li')).removeClass('open');
|
||||
$(this).parent('li').toggleClass('open');
|
||||
}
|
||||
return false;
|
||||
});
|
||||
// Toggle all
|
||||
$xGnb_li.find('>a[href="#gnb"]')
|
||||
.click(function(){
|
||||
if(!$xGnb.hasClass('all')){ // Open All
|
||||
$xGnb_li.addClass('open');
|
||||
$xGnb.addClass('all');
|
||||
} else { // Close All
|
||||
$xGnb_li.removeClass('open');
|
||||
$xGnb.removeClass('all');
|
||||
}
|
||||
});
|
||||
});
|
||||
jQuery(function(a){window.top.scrollTo(0,0);a(".x .skipNav>a").click(function(){a(a(this).attr("href")).attr("tabindex","0").css("outline","0").focus()});var d=a(".x .x_tabbable");d.find('.x_tab-pane:not(".x_active")').hide();d.find(".x_nav-tabs>li>a").click(function(){var b=a(this);b.parent("li").addClass("x_active").siblings().removeClass("x_active");d.find(b.attr("href")).addClass("x_active").show().siblings().removeClass("x_active").hide();return!1});var e=a(".x>.body");e.find(">.content");var b=
|
||||
e.find(">.gnb"),c=b.find(">ul>li");a(window).resize(function(){setTimeout(function(){980<=a(window).width()?b.height("auto").height(e.height()):b.height("auto")},100)}).resize();c.find(">ul").prev("a").addClass("virtual");c.find(">a.virtual").bind("click focus",function(){var d=a(this);b.hasClass("all")||(c.not(d.parent("li")).removeClass("open"),a(this).parent("li").toggleClass("open"));return!1});c.find('>a[href="#gnb"]').click(function(){b.hasClass("all")?(c.removeClass("open"),b.removeClass("all")):
|
||||
(c.addClass("open"),b.addClass("all"))})});
|
||||
|
|
|
|||
|
|
@ -34,21 +34,23 @@
|
|||
<button type="button" class="x_btn x_btn-small x_btn-inverse"><i class="x_icon-plus x_icon-white"></i> 사이트맵 추가</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col" id="add">
|
||||
<section>
|
||||
<h1>메뉴 추가</h1>
|
||||
<ul>
|
||||
<li><a href="#add_page" data-show="#add_page" data-hide="#add_url,#download">문서 페이지 <i class="x_icon-circle-arrow-right"></i></a></li>
|
||||
<li><a href="#add_page" data-show="#add_page" data-hide="#add_url,#download">위젯 페이지 <i class="x_icon-circle-arrow-right"></i></a></li>
|
||||
<li><a href="#add_page" data-show="#add_page" data-hide="#add_url,#download">게시판 <i class="x_icon-circle-arrow-right"></i></a></li>
|
||||
<li><a href="#add_url" data-show="#add_url" data-hide="#add_page,#download">URL 링크 <i class="x_icon-circle-arrow-right"></i></a></li>
|
||||
<li><a href="#add_page" data-show="#add_page" data-param='{ "t" : "value of t" }'>문서 페이지 <i class="x_icon-circle-arrow-right"></i></a></li>
|
||||
<li><a href="#add_page" data-show="#add_page">위젯 페이지 <i class="x_icon-circle-arrow-right"></i></a></li>
|
||||
<li><a href="#add_page" data-show="#add_page">게시판 <i class="x_icon-circle-arrow-right"></i></a></li>
|
||||
<li><a href="#add_url" data-show="#add_url">URL 링크 <i class="x_icon-circle-arrow-right"></i></a></li>
|
||||
</ul>
|
||||
<div class="x_btn-group" style="margin:0;padding:10px 0;border-top:1px solid #ccc;text-align:right">
|
||||
<a href="#download" class="x_btn x_btn-small x_btn-inverse" data-show="#download" data-hide="#add_page,#add_url"><i class="x_icon-plus x_icon-white"></i> 다른 메뉴타입설치</a>
|
||||
<a href="#download" class="x_btn x_btn-small x_btn-inverse" data-show="#download"><i class="x_icon-plus x_icon-white"></i> 다른 메뉴타입설치</a>
|
||||
</div>
|
||||
</section>
|
||||
<button type="button" class="x_close" data-hide="#download">×</button>
|
||||
<button type="button" class="x_close" data-hide="#add">×</button>
|
||||
</div>
|
||||
|
||||
<div class="col" id="add_page">
|
||||
<fieldset>
|
||||
<h1>문서 페이지</h1>
|
||||
|
|
@ -72,6 +74,7 @@
|
|||
</fieldset>
|
||||
<button type="button" class="x_close" data-hide="#add_page">×</button>
|
||||
</div>
|
||||
|
||||
<div class="col" id="add_url">
|
||||
<fieldset>
|
||||
<h1>URL 링크</h1>
|
||||
|
|
@ -387,6 +390,12 @@ jQuery(function($){
|
|||
return _oldhide.apply(this,arguments);
|
||||
}
|
||||
|
||||
var _oldshow = $.fn.show;
|
||||
$.fn.show = function(speed, callback) {
|
||||
$(this).trigger('show');
|
||||
return _oldshow.apply(this,arguments);
|
||||
}
|
||||
|
||||
//$( "#tmpl_siteMap" ).template( "siteMap" );
|
||||
$( "#tmpl_menuTree" ).template( "menuTree" );
|
||||
$( "#tmpl_menuTreeNode" ).template( "menuTreeNode" );
|
||||
|
|
@ -399,6 +408,43 @@ jQuery(function($){
|
|||
//$.jstree._themes = "PATH/TO/FOLDER/";
|
||||
//$.jstree._themes = "/maserati/modules/menu/tpl/css/themes/";
|
||||
$.jstree._themes = '{getUrl("")}/modules/menu/tpl/css/themes/';
|
||||
|
||||
// Prepare parms
|
||||
$(document.body).on("click", ".x [data-param]", function(ev){
|
||||
console.log($(ev.srcElement).attr('data-param'));
|
||||
$._htMarkupActionParam = $.parseJSON($(ev.srcElement).attr('data-param'));
|
||||
console.log($._htMarkupActionParam);
|
||||
return false;
|
||||
});
|
||||
|
||||
// TARGET toggle
|
||||
$(document.body).on("click", ".x [data-toggle]", function(ev){
|
||||
$($(ev.srcElement).attr('data-toggle')).toggle();
|
||||
return false;
|
||||
});
|
||||
// TARGET show
|
||||
$(document.body).on("click", ".x [data-show]", function(ev){
|
||||
var $target = $($(ev.srcElement).attr('data-show'));
|
||||
|
||||
if($target.hasClass("col")){
|
||||
$target.nextAll().hide();
|
||||
}
|
||||
|
||||
$target.show();
|
||||
});
|
||||
// TARGET hide
|
||||
$(document.body).on("click", ".x [data-hide]", function(ev){
|
||||
var $target = $($(ev.srcElement).attr('data-hide'));
|
||||
|
||||
if($target.hasClass("col")){
|
||||
$target.nextAll().hide();
|
||||
}
|
||||
|
||||
$target.hide();
|
||||
});
|
||||
|
||||
$('#add_url').bind("show", function(){console.log('show');});
|
||||
$('#add_url').bind("hide", function(){console.log('hide');});
|
||||
|
||||
// Set #site height fix
|
||||
$(window).resize(function(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue