Lines 199-206
Link Here
|
199 |
</li> |
199 |
</li> |
200 |
[% UNLESS languages.size %] |
200 |
[% UNLESS languages.size %] |
201 |
<li> |
201 |
<li> |
202 |
<label for="title" class="required">Title: </label> |
202 |
[% IF category == 'news' %] |
203 |
<input id="title" size="100" maxlength="250" type="text" name="title_default" value="[% additional_content.title | html %]" required="required" class="required" /> <span class="required">Required</span> |
203 |
<label for="title" class="required">Title: </label> |
|
|
204 |
<input id="title" size="100" maxlength="250" type="text" name="title_default" value="[% additional_content.title | html %]" required="required" class="required" /> <span class="required">Required</span> |
205 |
[% ELSE %] |
206 |
<label for="title">Title: </label> |
207 |
<input id="title" size="100" maxlength="250" type="text" name="title_default" value="[% additional_content.title | html %]" /> |
208 |
[% END %] |
204 |
</li> |
209 |
</li> |
205 |
[% END %] |
210 |
[% END %] |
206 |
<li> |
211 |
<li> |
Lines 554-559
Link Here
|
554 |
<script> |
559 |
<script> |
555 |
$(document).ready(function() { |
560 |
$(document).ready(function() { |
556 |
$("#tabs").tabs(); |
561 |
$("#tabs").tabs(); |
|
|
562 |
[% IF category == 'news' %] |
557 |
$("#add_additional_content").validate({ |
563 |
$("#add_additional_content").validate({ |
558 |
submitHandler: function(form){ |
564 |
submitHandler: function(form){ |
559 |
if ( ! $("#title_default").val().length > 0 ) { |
565 |
if ( ! $("#title_default").val().length > 0 ) { |
Lines 564-569
Link Here
|
564 |
form.submit(); |
570 |
form.submit(); |
565 |
} |
571 |
} |
566 |
}); |
572 |
}); |
|
|
573 |
[% END %] |
567 |
|
574 |
|
568 |
$("#submit_form").on("click",function(){ |
575 |
$("#submit_form").on("click",function(){ |
569 |
$("#add_additional_content").submit(); |
576 |
$("#add_additional_content").submit(); |
570 |
- |
|
|