InventoryItem and InventoryItemLocation models

This commit is contained in:
teras
2017-12-01 21:14:06 +02:00
committed by Lauri Võsandi
parent d20b2cb3e4
commit 86e338f981
5 changed files with 79 additions and 3 deletions

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();
}
})
});