histogram: Make histograms crash less
[ninja.git] / application / views / upload / js / upload.js
blob53b7d76f766686a919340b3a78b4cc46d89209d2
1 $(document).ready(function() {
2         $('#upload_form').submit(function() {
3                 if ($('#upload_file').val() == '') {
4                         return false;
5                 }
6         });
8         $('#dummy_href').click(function() {
9                 if ($('#xml_info').is(':visible')) {
10                         $('#xml_info').hide('fast');
11                 } else {
12                         $('#xml_info').show('fast');
13                 }
14                 return false
15         });
16 });