Skip to content
This repository was archived by the owner on Apr 22, 2022. It is now read-only.

Commit 5c2ef4f

Browse files
author
taleksashina
committed
Merge remote-tracking branch 'remotes/origin/master' into ontos-ldiw-acc
2 parents 8b26574 + cf0a717 commit 5c2ef4f

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

src/main/webapp/js/workbench/extraction-and-loading/d2rq-mapping-controller.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,11 @@ var D2RQMappingCtrl = function($scope, $http, $q, flash, ServerErrorResponse, Ac
133133
headers: {"Content-Type":"application/json; charset=utf-8"}
134134
}).then(function(response) {
135135
$scope.refreshMappingGroups().then(function(response) {
136-
$('#modalMappingGroup').modal('hide');
136+
close('#modalMappingGroup');
137137
adding = false;
138138
});
139139
}, function(response) {
140-
$('#modalMappingGroup').modal('hide');
140+
close('#modalMappingGroup');
141141
flash.error = ServerErrorResponse.getMessage(response.status);
142142
});
143143
});
@@ -694,11 +694,11 @@ var D2RQMappingCtrl = function($scope, $http, $q, flash, ServerErrorResponse, Ac
694694
headers: {"Content-Type":"application/json; charset=utf-8"}
695695
}).then(function(response) {
696696
$scope.refreshMappingGroups().then(function(response) {
697-
$('#modalMapping').modal('hide');
697+
close('#modalMapping');
698698
adding = false;
699699
});
700700
}, function(response) {
701-
$('#modalMapping').modal('hide');
701+
close('#modalMapping');
702702
flash.error = ServerErrorResponse.getMessage(response.status);
703703
});
704704
});
@@ -711,11 +711,11 @@ var D2RQMappingCtrl = function($scope, $http, $q, flash, ServerErrorResponse, Ac
711711
headers: {"Content-Type":"application/json; charset=utf-8"}
712712
}).then(function(response) {
713713
$scope.refreshMappingGroups().then(function(response) {
714-
$('#modalMapping').modal('hide');
714+
close('#modalMapping');
715715
adding = false;
716716
});
717717
}, function(response) {
718-
$('#modalMapping').modal('hide');
718+
close('#modalMapping');
719719
flash.error = ServerErrorResponse.getMessage(response.status);
720720
});
721721
}

src/main/webapp/js/workbench/extraction-and-loading/d2rq-mapping.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h5 class="modal-title green bold" data-i18n="_mapping-group_"></h5>
4141
</div>
4242
<div class="modal-footer">
4343
<button type="submit" class="btn-sm btn-primary" ng-click="addMappingGroup();" ng-disabled="mappingGroupForm.$invalid || isAdding()" data-i18n="_add_"></button>
44-
<button type="button" class="btn-sm btn-default" data-dismiss="modal" data-i18n="_cancel_"></button>
44+
<button type="button" class="btn-sm btn-default" ng-click="close('#modalMappingGroup')" data-i18n="_cancel_"></button>
4545
</div>
4646
</div>
4747
</form>
@@ -224,7 +224,7 @@ <h5 class="modal-title green bold" data-i18n="{{modaltitle}}"></h5>
224224

225225
<div class="modal-footer">
226226
<button type="submit" class="btn-sm btn-primary" ng-click="save();" ng-disabled="mappingForm.$invalid || isAdding()" data-i18n="_save_"></button>
227-
<button type="button" class="btn-sm btn-default" data-dismiss="modal" data-i18n="_cancel_"></button>
227+
<button type="button" class="btn-sm btn-default" ng-click="close('#modalMapping')" data-i18n="_cancel_"></button>
228228
</div>
229229
</div>
230230
</form>

src/main/webapp/js/workbench/extraction-and-loading/d2rq-task-controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ var D2RQTaskCtrl = function($scope, $http, $q, flash, ServerErrorResponse, Accou
105105
headers: {"Content-Type":"application/json; charset=utf-8"}
106106
}).then(function(response) {
107107
$scope.refreshTasks().then(function(response) {
108-
$('#modalTask').modal('hide');
108+
close('#modalTask');
109109
adding = false;
110110
});
111111
}, function(response) {
112112
flash.error = ServerErrorResponse.getMessage(response.status);
113-
$('#modalTask').modal('hide');
113+
close('#modalTask');
114114
});
115115
});
116116
};

src/main/webapp/js/workbench/extraction-and-loading/d2rq-task.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h5 class="modal-title green bold" data-i18n="_new-task_"></h5>
4141
</div>
4242
<div class="modal-footer">
4343
<button type="submit" class="btn-sm btn-primary" ng-click="add();" ng-disabled="taskForm.$invalid || isAdding()" data-i18n="_add_"></button>
44-
<button type="button" class="btn-sm btn-default" data-dismiss="modal" data-i18n="_cancel_"></button>
44+
<button type="button" class="btn-sm btn-default" ng-click="close('#modalTask')" data-i18n="_cancel_"></button>
4545
</div>
4646
</div>
4747
</form>

src/main/webapp/js/workbench/manual-revision-and-authoring/ontology-controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ var OntologyCtrl = function($scope, $http, flash, ServerErrorResponse, AccountSe
6060
headers: {"Content-Type":"application/json; charset=utf-8"}
6161
}).then(function(response) {
6262
$scope.refreshOntologies();
63-
$('#modalOntology').modal('hide');
63+
close('#modalOntology');
6464
}, function(response) {
6565
flash.error = ServerErrorResponse.getMessage(response.status);
6666
$scope.refreshOntologies();
@@ -72,7 +72,7 @@ var OntologyCtrl = function($scope, $http, flash, ServerErrorResponse, AccountSe
7272
data: {user: AccountService.getUsername()} //todo unauthorized user
7373
}).then(function(response) {
7474
$scope.refreshOntologies();
75-
$('#modalOntology').modal('hide');
75+
close('#modalOntology');
7676
}, function(response) {
7777
flash.error = ServerErrorResponse.getMessage(response.status);
7878
$scope.refreshOntologies();

0 commit comments

Comments
 (0)