Commit cfb90408 authored by Denis Shirshov's avatar Denis Shirshov

15.4

parent af4efd97
......@@ -12,7 +12,7 @@ angular
$scope.delayed = {};
$scope.download_button = false;
$scope.file_selector_button_text = "Select file";
$scope.calculation_img = false;
// $scope.calculation_img = false;
$scope.refresh_filename = function(file) {
$scope.translate_button = true;
......@@ -34,7 +34,7 @@ angular
url: 'http://localhost/translate',
data: {'file': file, 'action': 'parse', 'filename': $scope.filename}
}).then(function(response) {
$scope.calculation_img = false;
// $scope.calculation_img = false;
var result = response.data;
if (result.error_message) {
$scope.error = true;
......@@ -52,7 +52,7 @@ angular
}, function (response) {
console.log('Error status: ' + response);
}, function (evt) {
$scope.calculation_img = true;
// $scope.calculation_img = true;
var progressPercentage = parseInt(100.0 * evt.loaded / evt.total);
// console.log('progress: ' + progressPercentage + '% ' + evt.config.data.file.name);
});
......
......@@ -32,7 +32,7 @@
<div class="box">
<div class="buttons">
<a ng-class="['button', translate_button? 'selected' : 'action']" ngf-select="refresh_filename($file)" ng-model="file" name="file">[[file_selector_button_text]]</a>
<a class="button action ng-hide" ng-show="translate_button" ng-click="submit()">Translate</a>
<a class="button action ng-hide" ng-show="translate_button" ng-click="submit()">Convert</a>
</div>
</div>
<div ng-show="error" class="box ng-hide error">
......@@ -40,7 +40,7 @@
<span>[[error_message]]</span>
<div class="box"><a class="button reset" ng-click="reset()">Reset</a></div>
</div>
<div ng-show="calculation_img"><img src="img/loading.gif" /></div>
<!-- <div ngshow="calculation_img"><img src="img/loading.gif" /></div> -->
<div ng-show="download_button" class="box ng-hide">
<table class="results_table">
<tbody>
......@@ -60,7 +60,7 @@
</section>
</form>
<footer>
<div>Page generated <b>14.05.2019</b></div>
<div>Page generated <b>15.05.2019</b></div>
</footer>
<!-- Yandex.Metrika counter -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment