Fix toggle function see #7602

1.10.x
Julio Montoya 11 years ago
parent 57562173fb
commit 4e58264226
  1. 1
      main/auth/courses.php
  2. 24
      main/document/create_document.php
  3. 25
      main/document/edit_document.php
  4. 2
      main/newscorm/lp_add_item.php
  5. 4
      main/work/work.lib.php

@ -148,7 +148,6 @@ if (isset($_POST['create_course_category']) && isset($_POST['title_course_catego
// search courses
if (isset($_REQUEST['search_course'])) {
//echo "<p><strong>".get_lang('SearchResultsFor')." ".api_htmlentities($_POST['search_term'], ENT_QUOTES, api_get_system_encoding())."</strong><br />";
if ($ctok == $_REQUEST['sec_token']) {
$courses_controller->search_courses($_REQUEST['search_term'], null, null, null, $limit);
}

@ -25,17 +25,11 @@ $(document).ready(function() {
if ($(window).width() <= 785 ) {
hide_bar();
}
$("#hide_bar_template").toggle(
function() {
hide_bar();
},
function() {
$("#template_col").show();
$("#doc_form").removeClass("col-md-11");
$("#doc_form").addClass("col-md-9");
$(this).css("background-image", \'url("../img/hide0.png")\');
}
);
$("#hide_bar_template").click(function() {
$("#template_col").toggleClass("hide");
$("#hide_bar_template").toggleClass("hide_bar_template_not_hide");
});
CKEDITOR.on("instanceReady", function (e) {
showTemplates();
@ -586,12 +580,14 @@ if ($form->validate()) {
}
// HTML-editor
echo '<div class="row" style="overflow:hidden">
<div id="template_col" class="col-md-3" style="width:200px">
<div id="template_col" class="col-md-2">
<div id="frmModel" ></div>
</div>
<div id="hide_bar_template"></div>
<div class="col-md-1">
<div id="hide_bar_template"></div>
</div>
<div id="doc_form" class="col-md-9">
'.$form->return_form().'
'.$form->return_form().'
</div>
</div>';
Display :: display_footer();

@ -43,17 +43,10 @@ $(document).ready(function() {
hide_bar();
}
$("#hide_bar_template").toggle(
function() {
hide_bar();
},
function() {
$("#template_col").show();
$("#doc_form").removeClass("span11");
$("#doc_form").addClass("span9");
$(this).css("background-image", \'url("../img/hide0.png")\');
}
);
$("#hide_bar_template").click(function() {
$("#template_col").toggleClass("hide");
$("#hide_bar_template").toggleClass("hide_bar_template_not_hide");
});
CKEDITOR.on("instanceReady", function (e) {
showTemplates();
@ -516,12 +509,14 @@ if ($owner_id == api_get_user_id() ||
Display::display_warning_message(get_lang('BrowserDontSupportsSVG'));
}
echo '<div class="row-fluid" style="overflow:hidden">
<div id="template_col" class="span3" style="width:200px">
<div id="template_col" class="col-md-2">
<div id="frmModel"></div>
</div>
<div id="hide_bar_template"></div>
<div id="doc_form" class="span9">
'.$form->return_form().'
<div class="col-md-1">
<div id="hide_bar_template"></div>
</div>
<div id="doc_form" class="col-md-9">
'.$form->return_form().'
</div>
</div>';
}

@ -183,7 +183,7 @@ echo '</div>';
// hide bar div
if ($action == 'add_item' && $type == 'document' && !isset($_GET['file'])) {
echo '<div class="col-md-1"><div id="hide_bar_template" style="width:10px"></div></div> ';
echo '<div class="col-md-1"><div id="hide_bar_template"></div></div> ';
}
echo '<div id="doc_form" class="col-md-8">';

@ -1533,9 +1533,9 @@ function to_javascript_work()
$("#end_date").click(function() {
$("#option3").toggle();
});
});
</script>';
</script>';
return $js;
}

Loading…
Cancel
Save