diff --git a/main/lp/lp_add_item.php b/main/lp/lp_add_item.php index 83cf1f2cb6..dadfeabd70 100755 --- a/main/lp/lp_add_item.php +++ b/main/lp/lp_add_item.php @@ -227,7 +227,8 @@ $message = isset($_REQUEST['message']) ? $_REQUEST['message'] : null; // Show the template list. if ($type == 'document' && !isset($_GET['file'])) { // Show the template list. - echo '
'; + echo '
'; + echo '
'; } echo ''; diff --git a/main/lp/lp_edit_item.php b/main/lp/lp_edit_item.php index 861b7a40db..623c821684 100755 --- a/main/lp/lp_edit_item.php +++ b/main/lp/lp_edit_item.php @@ -138,8 +138,25 @@ function confirmation(name) { return false; } } +jQuery(document).ready(function(){ + jQuery('.scrollbar-inner').scrollbar(); +}); $(document).ready(function() { + + $("#doc_form").removeClass( "col-md-8" ).addClass( "col-md-7" ); + $("#hide_bar_template").click(function() { + $("#lp_sidebar").toggleClass("hide"); + if ($('#doc_form').is('.col-md-7')) { + $('#doc_form').removeClass('col-md-7'); + $('#doc_form').addClass('col-md-11'); + } else { + $('#doc_form').removeClass('col-md-11'); + $('#doc_form').addClass('col-md-7'); + } + $("#hide_bar_template").toggleClass("hide_bar_template_not_hide"); + }); + $('.lp-btn-associate-forum').on('click', function (e) { var associate = confirm(''); @@ -161,8 +178,8 @@ $(document).ready(function() { echo $_SESSION['oLP']->build_action_menu(); -echo '
'; -echo '
'; +echo '
'; +echo '
'; $path_item = isset($_GET['path_item']) ? $_GET['path_item'] : 0; $path_item = Database::escape_string($path_item); $tbl_doc = Database :: get_course_table(TABLE_DOCUMENT); @@ -177,13 +194,13 @@ if (Database::num_rows($res_doc) > 0 && $path_parts['extension'] == 'html') { echo $_SESSION['oLP']->return_new_tree(); // Show the template list - echo '
'; + echo '
'; } else { echo $_SESSION['oLP']->return_new_tree(); } echo '
'; -echo '
'; +echo '
'; if (isset($is_success) && $is_success === true) { $msg = '
';