Skip to content

Commit

Permalink
Correcciones de estilo
Browse files Browse the repository at this point in the history
  • Loading branch information
jogianotti committed Mar 16, 2016
1 parent 1aa9146 commit c240475
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -637,15 +637,6 @@ orderControllers.controller('OrderCtrl', function ($scope, $http, Upload, $filte
});
};

$scope.validateInstitution = function () {
if (!_.isEmpty(findInstitution($scope.select.tree))) {
$scope.ccierror = '';
$scope.submitInstitution();
} else {
$scope.ccierror = 'has-error';
}
};

$scope.submitInstitution = function () {
var parent_institution = findInstitution($scope.select.tree);

Expand Down Expand Up @@ -673,9 +664,7 @@ orderControllers.controller('OrderCtrl', function ($scope, $http, Upload, $filte
$('#institutionForm div.form-group').has('input').each(function () {
$(this).removeClass('has-error');
});
console.log(response.errors);
$(response.errors).each(function () {
console.log($(this).get(0));
$('#institutionForm div.form-group')
.has('input[name="institution[' + $(this).get(0).property_path + ']"]')
.addClass('has-error')
Expand Down Expand Up @@ -712,7 +701,6 @@ orderControllers.controller('OrderCtrl', function ($scope, $http, Upload, $filte
});

$(response.errors).each(function () {
console.log($(this).get(0));
$('#journalForm div.form-group')
.has('input[name="journal[' + $(this).get(0).property_path + ']"]')
.addClass('has-error')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{% verbatim %}
<label for="search">{{'search' | translate}}:</label>
<input type="text" name="search" id="search" ng-change="searchCatalog(catalogSearch)" ng-model="catalogSearch" />
<button class="btn btn-sm btn-default pull-right" data-toggle="popover" data-placement="left" data-content="{{ getHtmlMaterialData() }}" data-html=true data-container="body">
<button class="btn btn-sm btn-default pull-right" data-auto-close="1" data-placement="left" bs-popover data-content-template="show_material_data.html?{{assets_version}}" data-container="body">
{{ 'orderData' | translate }}
</button>
<hr>
Expand Down Expand Up @@ -843,7 +843,7 @@
</div>
<div class="modal-footer">
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">{{'close' | translate}}</button>
<button class="btn btn-primary" ng-click="validateInstitution()" value="#institutionForm">{{'save' | translate}}</button>
<button class="btn btn-primary" ng-click="submitInstitution()" value="#institutionForm">{{'save' | translate}}</button>
</div>
</div>
</div>
Expand Down

0 comments on commit c240475

Please sign in to comment.