From c1e043b7ba78cee73d13ded9ef03b256202540f1 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 24 Apr 2017 10:36:10 +0300 Subject: Move STATIC_ROOT inside app directory --- static/js/common.js | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 static/js/common.js (limited to 'static/js/common.js') diff --git a/static/js/common.js b/static/js/common.js deleted file mode 100644 index 8b03006..0000000 --- a/static/js/common.js +++ /dev/null @@ -1,37 +0,0 @@ -/** - * common.js - */ - $(function(){ - $('.disabled').click(function(e) { - e.preventDefault(); - return false; - }); - $('input[type="text"]').attr('autocomplete', 'off'); - - $(document).on('click', 'a[data-modal]', function(e){ - - if($(this).parent().hasClass('disabled') || $(this).hasClass('disabled')) { - return false; - } - - $('.wrapper').spin(); - e.preventDefault(); - - $('#modal').load($(this).attr('href'), - function(){ - $('.wrapper').spin(false); - $('#modal').modal({'backdrop': 'static'}); - $('#modal .modal-body input:visible:first').focus(); - - $('#gsx-container').load($('#gsx-container').data('source')); - $('#modal button[type="submit"]').click(function(e) { - $('#modal form').submit(); - }); - $('#modal button[type="submit"]').focus(); - $('#modal .trigger-search').on('click', function(){ - $('#search-form').submit(); - }); - }); - }); - -}); -- cgit v1.2.3