diff --git a/modules/admin/tpl/admin_setup.html b/modules/admin/tpl/admin_setup.html index 70988ffbf..43798df00 100644 --- a/modules/admin/tpl/admin_setup.html +++ b/modules/admin/tpl/admin_setup.html @@ -1,10 +1,10 @@ -
-

{$XE_VALIDATOR_MESSAGE}

-

{$lang->admin_setup}

+
+

{$XE_VALIDATOR_MESSAGE}

+

{$lang->admin_title}

@@ -38,29 +38,27 @@

{$lang->admin_menu_setup}

- + -
- -
+
@@ -73,7 +71,7 @@
- +

{$lang->admin_menu_add}

@@ -83,12 +81,10 @@
-
- -
- -
+ +
+
@@ -101,65 +97,19 @@
\ No newline at end of file diff --git a/modules/admin/tpl/css/admin.css b/modules/admin/tpl/css/admin.css index 53c21d93b..383be66f2 100644 --- a/modules/admin/tpl/css/admin.css +++ b/modules/admin/tpl/css/admin.css @@ -22,7 +22,12 @@ body>.x, /* Bootstrap Override */ .x .x_page-header{padding-bottom:0;border-bottom:2px solid #ddd} .x .x_page-header>h1{margin-bottom:0;font-size:24px;color:#333} -.x h1,.x h2,.x h3,.x h4,.x h5,.x h6{line-height:1.5;font-weight:600;color:#666} +.x h1, +.x h2, +.x h3, +.x h4, +.x h5, +.x h6{line-height:1.5;font-weight:600;color:#666} .x h1{font-size:22px} .x h2{font-size:18px} .x h3{font-size:14px} @@ -32,7 +37,7 @@ body>.x, .x [class^="x_icon-"], .x [class*=" x_icon-"]{text-decoration:none;border:0;padding:0;background-color:transparent;overflow:hidden;font-size:0} .x .x_close{width:32px;height:32px} -.x .x_alert{ position:relative} +.x .x_alert{position:relative} .x .x_alert>.x_close, .x.x_modal>.x_close{position:absolute;top:0;right:0} .x .x_pagination{height:32px} diff --git a/modules/admin/tpl/css/admin.min.css b/modules/admin/tpl/css/admin.min.css index 978c20baf..bb60cae8a 100644 --- a/modules/admin/tpl/css/admin.min.css +++ b/modules/admin/tpl/css/admin.min.css @@ -22,7 +22,12 @@ body>.x, /* Bootstrap Override */ .x .x_page-header{padding-bottom:0;border-bottom:2px solid #ddd} .x .x_page-header>h1{margin-bottom:0;font-size:24px;color:#333} -.x h1,.x h2,.x h3,.x h4,.x h5,.x h6{line-height:1.5;font-weight:600;color:#666} +.x h1, +.x h2, +.x h3, +.x h4, +.x h5, +.x h6{line-height:1.5;font-weight:600;color:#666} .x h1{font-size:22px} .x h2{font-size:18px} .x h3{font-size:14px} @@ -32,7 +37,7 @@ body>.x, .x [class^="x_icon-"], .x [class*=" x_icon-"]{text-decoration:none;border:0;padding:0;background-color:transparent;overflow:hidden;font-size:0} .x .x_close{width:32px;height:32px} -.x .x_alert{ position:relative} +.x .x_alert{position:relative} .x .x_alert>.x_close, .x.x_modal>.x_close{position:absolute;top:0;right:0} .x .x_pagination{height:32px} diff --git a/modules/admin/tpl/js/menu_setup.js b/modules/admin/tpl/js/menu_setup.js index 51690a515..855dc90b2 100644 --- a/modules/admin/tpl/js/menu_setup.js +++ b/modules/admin/tpl/js/menu_setup.js @@ -69,7 +69,7 @@ var dragging = false, $holder = $('
  • '); -$('div.adminMenu') +$('form.adminMap>ul') .delegate('li:not(.placeholder,.parent)', { 'mousedown.st' : function(event) { var $this, $uls, $ul, width, height, offset, position, offsets, i, dropzone, wrapper=''; @@ -84,8 +84,6 @@ $('div.adminMenu') $uls = $this.parentsUntil('.adminMap').filter('ul'); $ul = $uls.eq(-1); - $ul.css('position', 'relative'); - position = {x:event.pageX, y:event.pageY}; offset = getOffset(this, $ul.get(0)); @@ -207,12 +205,9 @@ $('div.adminMenu') return false; } }) - .find('li') - .prepend('') - .filter('.parent') - .find('>button.moveTo').css({'visibility':'hidden','margin-left':'-12px'}).end() - .end() - .end() + .find('li li') + .prepend('').end() + .end(); $('
    ') .css({display:'none',position:'absolute',backgroundColor:'#000',opacity:0.7}) diff --git a/modules/admin/tpl/js/menu_setup.min.js b/modules/admin/tpl/js/menu_setup.min.js index c4b9f58e9..eff3e48a4 100644 --- a/modules/admin/tpl/js/menu_setup.min.js +++ b/modules/admin/tpl/js/menu_setup.min.js @@ -1,8 +1 @@ -jQuery(function(b){function k(a){if(moduleList=a.menuList){var c=b("#menuNameList"),e;for(e in moduleList){var f=moduleList[e],a=b('').appendTo(c),d;for(d in f)a.append('")}}}var d,h=b("#editForm"),a=b("#listForm");b("a._add").click(function(){d=b(this).parent().prevAll("._item_key").val();h.find("input[name=parent_srl]").val(d);exec_xml("menu","procMenuAdminAllActList",[],k,["menuList"])});b("a._parent_delete").click(function(){var i= -b(this).parent().prevAll("._parent_key").val();a.find("input[name=menu_item_srl]").val(i);a.submit()});b("a._child_delete").click(function(){var i=b(this).parents("li").find("._item_key").val();a.find("input[name=menu_item_srl]").val(i);a.submit()})}); -jQuery(function(b){function k(a,b){for(var c=0,e=0;a&&a!=b;)c+=a.offsetTop,e+=a.offsetLeft,a=a.offsetParent;return{top:c,left:e}}b("form.siteMap").delegate("li:not(.placeholder)","dropped.st",function(){var a=b(this),d;d=a.find(">input._parent_key");a.parent("ul").parent("li").length?d.val(a.parent("ul").parent("li").find(">input._item_key").val()):d.val("0")});var d=!1,h=b('
  • ');b("div.adminMenu").delegate("li:not(.placeholder,.parent)",{"mousedown.st":function(a){var i,c,e, -f,m,n,j,l,g;if(!(b(a.target).is("a,input,label,textarea")||1!=a.which)){d=!0;c=b(this);n=c.height();m=c.width();e=c.parentsUntil(".siteMap").filter("ul");f=e.eq(-1);f.css("position","relative");i=a.pageY;j=k(this,f.get(0));$clone=c.clone(!0).attr("target",!0);for(a=e.length-1;a;a--)$clone=$clone.wrap("