diff --git a/ereuse_devicehub/static/js/main_inventory.js b/ereuse_devicehub/static/js/main_inventory.js index 2478a420..48834647 100644 --- a/ereuse_devicehub/static/js/main_inventory.js +++ b/ereuse_devicehub/static/js/main_inventory.js @@ -61,7 +61,7 @@ function removeTag() { function newAction(action) { $("#actionModal #type").val(action); $("#actionModal #title-action").html(action); - devices_count = $(".deviceSelect").filter(':checked').length; + var devices_count = $(".deviceSelect").filter(':checked').length; $("#actionModal .devices-count").html(devices_count); $("#activeActionModal").click(); } @@ -69,7 +69,7 @@ function newAction(action) { function newAllocate(action) { $("#allocateModal #type").val(action); $("#allocateModal #title-action").html(action); - devices_count = $(".deviceSelect").filter(':checked').length; - $("#actionModal .devices-count").html(devices_count); + var devices_count = $(".deviceSelect").filter(':checked').length; + $("#allocateModal .devices-count").html(devices_count); $("#activeAllocateModal").click(); } diff --git a/ereuse_devicehub/templates/inventory/actions.html b/ereuse_devicehub/templates/inventory/actions.html index c74afa41..e66d46cc 100644 --- a/ereuse_devicehub/templates/inventory/actions.html +++ b/ereuse_devicehub/templates/inventory/actions.html @@ -15,13 +15,12 @@ {% if field == form_new_action.devices %}
You need select first some device before to do one action
+ You need select first some device before to do one action +
+ +