Skip to content
Permalink
Browse files

Show scroll height option fix

  • Loading branch information...
Theophilix committed Apr 8, 2019
1 parent 5c09eb3 commit a3d7105d1f53135461d5f3df6103fe2bfe36e4e7
Showing with 20 additions and 1 deletion.
  1. +20 −1 admin/views/etetable/tmpl/edit.php
@@ -421,7 +421,7 @@ function checkics(val){

<li><?php echo $this->form->getLabel('scroll_table'); ?>
<?php echo $this->form->getInput('scroll_table'); ?></li>
<li><?php echo $this->form->getLabel('scroll_table_height'); ?>
<li id="scroll_table_height"><?php echo $this->form->getLabel('scroll_table_height'); ?>
<?php echo $this->form->getInput('scroll_table_height'); ?></li>

</ul>
@@ -454,6 +454,25 @@ function checkics(val){
<!-- added to resolve loading issue -->
<input type="hidden" name="title" id="jform_title" value="" />
</form>
<style>
#scroll_table_height{
display: none;
}
</style>
<script>
jQuery(document).ready(function(){
if(jQuery("#jform_scroll_table").val() == 1){
jQuery("#scroll_table_height").show();
}
jQuery("#jform_scroll_table").change(function(){
if(jQuery(this).val() == 1){
jQuery("#scroll_table_height").show();
}else{
jQuery("#scroll_table_height").hide();
}
})
})
</script>
<div class="clr"></div>
<?php
if($this->item->id > 0){

0 comments on commit a3d7105

Please sign in to comment.
You can’t perform that action at this time.