Adding js for advanced properties from 1.10

1.9.x
Julio Montoya 11 years ago
parent dac67bc74b
commit 9fed5ab518
  1. 18
      main/template/default/layout/footer.tpl

@ -81,6 +81,7 @@ $(document).ready( function() {
* </div>
* */
$(".advanced_options").on("click", function() {
event.preventDefault();
var id = $(this).attr('id') + '_options';
var button = $(this);
$("#"+id).toggle(function() {
@ -88,6 +89,23 @@ $(document).ready( function() {
});
});
/**
* <a class="advanced_options_open" href="http://" rel="div_id">Open</a>
* <a class="advanced_options_close" href="http://" rel="div_id">Close</a>
* <div id="div_id">Div content</div>
* */
$(".advanced_options_open").on("click", function() {
event.preventDefault();
var id = $(this).attr('rel');
$("#"+id).show();
});
$(".advanced_options_close").on("click", function() {
event.preventDefault();
var id = $(this).attr('rel');
$("#"+id).hide();
});
// Chosen select
$(".chzn-select").chosen({
disable_search_threshold: 10

Loading…
Cancel
Save