diff options
Diffstat (limited to 'js/scilab_fixer.js')
-rw-r--r-- | js/scilab_fixer.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/js/scilab_fixer.js b/js/scilab_fixer.js index 43450f3..ef05611 100644 --- a/js/scilab_fixer.js +++ b/js/scilab_fixer.js @@ -27,12 +27,16 @@ $(document).ready(function() { $example.html("<option value='0'>Please select a example</option>"); break; + case "caption": + $caption.val(""); + break; + } } } $category.change(function() { - reset("book", "chapter", "example"); + reset("book", "chapter", "example", "caption"); var category_id = $(this).val(); $.ajax({ @@ -46,7 +50,7 @@ $(document).ready(function() { }); $book.change(function() { - reset("chapter", "example"); + reset("chapter", "example", "caption"); var book_id = $(this).val(); $.ajax({ @@ -60,7 +64,7 @@ $(document).ready(function() { }); $chapter.change(function() { - reset("example"); + reset("example", "caption"); var chapter_id = $(this).val(); $.ajax({ @@ -75,6 +79,7 @@ $(document).ready(function() { $example.change(function() { var example_id = $(this).val(); + reset("caption"); $.ajax({ url: modPath + "ajax/example/" + example_id, |