Rev 12569 | Rev 12595 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12569 | Rev 12581 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | !endif |
30 | !endif |
31 | !next i |
31 | !next i |
32 | <option value="$[$glossarytot+1]">$name_newglos</option> |
32 | <option value="$[$glossarytot+1]">$name_newglos</option> |
33 | </select> |
33 | </select> |
34 | </div> |
34 | </div> |
35 | <div id="js-new_glossary"> |
35 | <div id="js-new_glossary" class="field box"> |
36 | $name_newglostitle |
36 | <label for="new_glossary">$name_newglostitle</label> |
37 | <input size="50" name="new_glossary" value="$new_glossary" id="new_glossary" /> |
37 | <input size="50" name="new_glossary" value="$new_glossary" id="new_glossary" /> |
38 | </div> |
38 | </div> |
39 |
|
39 | <div class="field box"> |
40 |
|
40 | <label for="gloss_title">$name_titleglose</label> |
41 |
|
41 | <input size="50" name="title" value="$gl_title" id="gloss_title" required="required" /> |
42 |
|
42 | </div> |
43 | !if $jquery_defined=yes |
43 | !if $jquery_defined=yes |
44 | <script> |
44 | <script> |
45 | $$('#pickglossary').on('change', function() { |
45 | $$('#pickglossary').on('change', function() { |
46 | var check = this.value === "$[$glossarytot+1]"; |
46 | var check = this.value === "$[$glossarytot+1]"; |
47 | $$("#new_glossary").prop('required', check); |
47 | $$("#new_glossary").prop('required', check); |
48 | $$("#gloss_title").prop('required', check); |
48 | !!$$("#gloss_title").prop('required', check); |
49 | if(check){ |
49 | if(check){ |
50 | $$("#js-new_glossary").slideDown(); |
50 | $$("#js-new_glossary").slideDown(); |
51 | }else{ |
51 | }else{ |
52 | $$("#js-new_glossary"). |
52 | $$("#js-new_glossary").hide(); |
53 | } |
53 | } |
54 | }).change(); |
54 | }).change(); |
55 | </script> |
55 | </script> |
56 | !endif |
56 | !endif |
57 | <input type="hidden" name="job" value="add" /> |
57 | <input type="hidden" name="job" value="add" /> |
58 | <div class="wimscenter wimsform"><input type="submit" value="$wims_name_Insert" /></div> |
58 | <div class="wimscenter wimsform"><input type="submit" value="$wims_name_Insert" /></div> |
59 | </fieldset> |
59 | </fieldset> |
60 | !formend |
60 | !formend |