confirmation added to form if no tags selected
This commit is contained in:
parent
edb7f2915c
commit
e4766f3ac3
|
@ -328,7 +328,17 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</span>
|
</span>
|
||||||
|
<% if !@module_app.tags.empty? %>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$("form.previewable").on("submit", function(){
|
||||||
|
if(!$("input[name='bulletin[tags][]']").is(":checked")){
|
||||||
|
if(!confirm("You have selected no tag, do you wish to continue?")){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
<% end %>
|
||||||
<% content_for :page_specific_javascript do %>
|
<% content_for :page_specific_javascript do %>
|
||||||
<script>
|
<script>
|
||||||
function Appendzero(obj)
|
function Appendzero(obj)
|
||||||
|
|
Loading…
Reference in New Issue