diff --git a/e107_admin/menus.php b/e107_admin/menus.php index 413f120c1..9083219f5 100644 --- a/e107_admin/menus.php +++ b/e107_admin/menus.php @@ -58,11 +58,13 @@ if(strpos(e_QUERY, 'configure') !== FALSE ) e107::js('core', 'core/admin.jquery.js', 'jquery', 4); - e107::css('inline'," .column { width: 170px; float: left; padding-bottom: 100px; } + e107::css('inline'," .column { width:100%; padding-bottom: 100px; } + .regularMenu { border:1px dotted silver; margin-bottom:6px; padding-left:3px; padding-right:3px } + .menuOptions { padding-top:7px; padding-right:5px; text-align:right; } .portlet { margin: 0 1em 1em 0; } .portlet-header { margin: 0.3em; padding-bottom: 4px; padding-left: 0.2em; cursor:move } .portlet-header .ui-icon { float: right; } - .portlet-content { padding: 10px; } + .portlet-content { padding: 7px; } .ui-sortable-placeholder { border: 1px dotted black; visibility: visible !important; height: 50px !important; } .ui-sortable-placeholder * { visibility: hidden; } ",'jquery'); @@ -84,7 +86,7 @@ require_once(e_HANDLER."menumanager_class.php"); $rs = new form; $frm = new e_form(); - $men = new e_menuManager(1); // use 1 for dragdrop. + $men = new e_menuManager(0); // use 1 for dragdrop. if(e_AJAX_REQUEST) diff --git a/e107_files/jslib/core/admin.jquery.js b/e107_files/jslib/core/admin.jquery.js index 99c664b5d..8c2153b79 100644 --- a/e107_files/jslib/core/admin.jquery.js +++ b/e107_files/jslib/core/admin.jquery.js @@ -20,6 +20,8 @@ $(document).ready(function() }); + + $(".e-radio-multi").each(function() { // $(this).nextAll(".field-help").hide(); // $(this).nextAll(":input").tipsy({title: 'hello'}); @@ -371,6 +373,7 @@ $(document).ready(function() }); $( ".portlet" ).addClass( "ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" ) + // $( ".portlet" ).addClass( "ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" ) .find( ".portlet-header" ) .addClass( "ui-widget-header ui-corner-all" ) .prepend( "") diff --git a/e107_files/jslib/core/all.jquery.js b/e107_files/jslib/core/all.jquery.js index 45c2ef989..533d844ab 100644 --- a/e107_files/jslib/core/all.jquery.js +++ b/e107_files/jslib/core/all.jquery.js @@ -5,8 +5,10 @@ $(document).ready(function() $(".e-expandit").show(); $(".e-expandit").click(function () { - var id = $(this).attr("href"); + + var id = $(this).attr("href"); $(id).toggle("slow"); + return false; }); // Dates -------------------------------------------------- @@ -119,7 +121,7 @@ $(document).ready(function() // Tooltips for bbarea. $(".bbcode_buttons").tipsy({gravity: 's',opacity: 1.0, fade: true,html: true}); - + $("a.e-tip").tipsy({gravity: 'w',opacity: 1.0, fade: true,html: true}); // var tabs = $('#tab-container').clone(true); // $('#htmlEditor').append(tabs); diff --git a/e107_handlers/menumanager_class.php b/e107_handlers/menumanager_class.php index f25355f7c..5f9f6602c 100644 --- a/e107_handlers/menumanager_class.php +++ b/e107_handlers/menumanager_class.php @@ -28,6 +28,7 @@ class e_menuManager { var $menuActivateIds; var $debug; var $menuMessage; + var $style = 'default'; function __construct($dragdrop=FALSE) { @@ -1035,6 +1036,7 @@ class e_menuManager { } else if(strstr($str, "MENU")) { + $matches = array(); if(preg_match_all("/\{MENU=([\d]{1,3})(:[\w\d]*)?\}/", $str, $matches)) { @@ -1075,11 +1077,13 @@ class e_menuManager { $sql9->db_Select("menus", "*", "menu_location='$menu' AND menu_layout='" . $this->dbLayout . "' ORDER BY menu_order"); $menu_count = $sql9->db_Rows(); + $cl = ($this->dragDrop) ? "'portlet" : "regularMenu"; + $menuText .= "\n