diff --git a/Makefile b/Makefile index b4df821..b29fb9c 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ build: # target: build-stage - Build all docker containers, defined in docker-compose.stage.yml build-stage: - docker-compose build -f docker-compose.stage.yml + docker-compose -f docker-compose.stage.yml build # target: virtualenv - Make virtualenv virtualenv: diff --git a/src/dokumentor/static/js/client/search-external-api.js b/src/dokumentor/static/js/client/search-external-api.js index 1704ee1..3a430bf 100644 --- a/src/dokumentor/static/js/client/search-external-api.js +++ b/src/dokumentor/static/js/client/search-external-api.js @@ -117,10 +117,8 @@ $(document).ready(function() { if (!data) return; if (data.type === "LEGAL"|| data.type === "INDIVIDUAL" ) { confirmChangeDataPromise(clientInputs).then(function (answer) { - if (answer) { - changeDataInInputs(data) - } - cleanSearchInput(); + if (answer) { changeDataInInputs(data) } + cleanSearchInput(); }) ; } else { changeDataInInputs(data) @@ -139,21 +137,19 @@ $(document).ready(function() { } bankSearch.on('keyup',(function () { + // TODO: on clear button if (bankSearch.val().length === 0) { clearResultSearchDiv($("#searchBankResult")); clearSearchInputs([bankFullName, bankBic, bankCorrespondentAccount]); } })); - - clientSearch.on('keyup',(function () { - - if (clientSearch.val().length === 0) { - // console.log(clientSearch.val().length); - clearSearchInputs([clientName, clientInn, clientKpp, clientOqrn, clientAddress]); - } else { - - } - })); + // TODO: on clear button + // clientSearch.on('keyup',(function () { + // + // if (clientSearch.val().length === 0) { + // clearSearchInputs([clientName, clientInn, clientKpp, clientOqrn, clientAddress, clientNameShort, clientNameShortD, contactName]); + // } + // })); fillInput(clientSearch, "PARTY", 5); fillInput(bankSearch, "BANK", 1); diff --git a/src/dokumentor/templates/base.html b/src/dokumentor/templates/base.html index bc4d897..a013809 100644 --- a/src/dokumentor/templates/base.html +++ b/src/dokumentor/templates/base.html @@ -10,7 +10,7 @@ - + {% render_block "css" %}