fix bug clear

feature/docker
Dmitriy Shesterkin 9 years ago
parent 9e6970c86a
commit f280d9dac3
  1. 2
      Makefile
  2. 24
      src/dokumentor/static/js/client/search-external-api.js
  3. 2
      src/dokumentor/templates/base.html

@ -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:

@ -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);

@ -10,7 +10,7 @@
<link rel="shortcut icon" href="{% static 'favicon.ico' %}" />
<link rel="stylesheet" href="{% static 'css/ui-lightness/jquery-ui-1.10.3.custom.css' %}" />
<link rel="stylesheet" href="{% static 'css/suggestions.css' %}" />
<link rel="stylesheet" href="{% static 'css/style.css' %}?t=1489695907" />
<link rel="stylesheet" href="{% static 'css/style.css' %}?t=1489695908" />
{% render_block "css" %}
</head>
<body>

Loading…
Cancel
Save