InventoryItem and InventoryItemLocation models

This commit is contained in:
teras
2018-04-27 20:00:59 +03:00
committed by lauri
parent d20b2cb3e4
commit 86e338f981
5 changed files with 79 additions and 3 deletions
+21
View File
@@ -0,0 +1,21 @@
var hide_page = false;
django.jQuery(document).ready(function(){
if (django.jQuery('#id_address').is(':checked')) {
django.jQuery(".field-gps_location").show();
hide_page=true;
}
else {
django.jQuery(".field-gps_location").hide();
hide_page=false;
}
django.jQuery("#id_address").click(function(){
hide_page = !hide_page;
if(hide_page) {
django.jQuery(".field-gps_location").show();
}
else {
django.jQuery(".field-gps_location").hide();
}
})
});