<script>
-jQuery(document).ready(function(){
+$(document).ready(function(){
var availableTags = [
{% if authorities %}
{% for authority in authorities %}
return 0;
});
// auto-complete the form
- jQuery( "#authority_hrn" ).autocomplete({
+ $( "#authority_hrn" ).autocomplete({
source: availableTags,
minLength: 0,
change: function (event, ui) {
//select: function( event, ui ) {console.log(jQuery(this))}
});
// for hover texts
- jQuery('[title!=""]').qtip();
-
- $('form').submit(function() {
+ $('[title!=""]').qtip();
+ $("form").validate();
+ $("form").submit(function() {
if ($('select option:selected').val() == 'upload') {
if ($('input[name=user_public_key]').val() == '') {
alert('Please specify the key file to upload');