DJANGO Phase 1

This commit is contained in:
IGNY8 VPS (Salman)
2025-12-13 22:34:36 +00:00
parent 60263b4682
commit 1acecd8639
68 changed files with 9797 additions and 46 deletions

View File

@@ -0,0 +1,25 @@
(function() {
'use strict';
django.jQuery(".admindatefilter").each(
function(){
var form_id = django.jQuery(this).find("form").attr('id').slice(0,-5);
var qs_name = form_id+"-query-string";
var query_string = django.jQuery('input#'+qs_name).val();
var form_name = form_id+"-form";
// Bind submit buttons
django.jQuery(this).find("input[type=select]").bind("click",
function(event){
event.preventDefault();
var form_data = django.jQuery('#'+form_name).serialize();
amp = query_string == "?" ? "" : "&"; // avoid leading ?& combination
window.location = window.location.pathname + query_string + amp + form_data;
});
// Bind reset buttons
django.jQuery(this).find("input[type=reset]").bind("click",
function(){
window.location = window.location.pathname + query_string;
});
});
})();