Skip to content

Commit

Permalink
update modal syntax for ui-bootstrap 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bastienmoulia committed Apr 20, 2016
1 parent c70417a commit 3c94699
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions demo/scripts/controllers/NewCardController.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

'use strict';

angular.module('demoApp').controller('NewCardController', ['$scope', '$modalInstance', 'column', function ($scope, $modalInstance, column) {
angular.module('demoApp').controller('NewCardController', ['$scope', '$uibModalInstance', 'column', function ($scope, $uibModalInstance, column) {

function initScope(scope) {
scope.columnName = column.name;
Expand All @@ -17,11 +17,11 @@ angular.module('demoApp').controller('NewCardController', ['$scope', '$modalInst
if (!this.newCardForm.$valid) {
return false;
}
$modalInstance.close({title: this.title, column: column, details: this.details});
$uibModalInstance.close({title: this.title, column: column, details: this.details});
};

$scope.close = function () {
$modalInstance.close();
$uibModalInstance.close();
};

initScope($scope);
Expand Down
4 changes: 2 additions & 2 deletions demo/scripts/services/BoardService.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

'use strict';

angular.module('demoApp').service('BoardService', ['$modal', 'BoardManipulator', function ($modal, BoardManipulator) {
angular.module('demoApp').service('BoardService', ['$uibModal', 'BoardManipulator', function ($uibModal, BoardManipulator) {

return {
removeCard: function (board, column, card) {
Expand All @@ -13,7 +13,7 @@ angular.module('demoApp').service('BoardService', ['$modal', 'BoardManipulator',
},

addNewCard: function (board, column) {
var modalInstance = $modal.open({
var modalInstance = $uibModal.open({
templateUrl: 'views/partials/newCard.html',
controller: 'NewCardController',
backdrop: 'static',
Expand Down

0 comments on commit 3c94699

Please sign in to comment.