diff --git a/package.json b/package.json index 123cdd58b..78cc85292 100644 --- a/package.json +++ b/package.json @@ -6,4 +6,4 @@ "protractor": "~1.5", "selenium-webdriver": "~2.40.0" } -} \ No newline at end of file +} diff --git a/src/index.html b/src/index.html index c5cbdf66f..a05283aea 100644 --- a/src/index.html +++ b/src/index.html @@ -47,11 +47,11 @@
' + escape(key) + '
' +
+ ' uib-popover-html="popover' + index + counter + '">' + escape(key) + '
' +
'';
return before + token + after;
});
@@ -274,22 +277,21 @@ angular.module('homepage', ['ngAnimate', 'ui.bootstrap', 'download-data'])
});
tabs.push(
- '' + content +'
\n' +
- 'me
.'
+ 'me
.'
};
})
- .controller('AppController', function($scope, $modal, BRANCHES) {
+ .controller('AppController', function($scope, $uibModal, BRANCHES) {
$scope.BRANCHES = BRANCHES;
$scope.showDownloadModal = function() {
- $modal.open({
+ $uibModal.open({
templateUrl: 'partials/download-modal.html',
windowClass: 'download-modal'
});
};
$scope.showVideo = function(videoUrl) {
- $modal.open({
+ $uibModal.open({
templateUrl: 'partials/video-modal.html',
windowClass: 'video-modal',
controller: 'VideoController',
@@ -458,36 +460,6 @@ angular.module('homepage', ['ngAnimate', 'ui.bootstrap', 'download-data'])
})
-
-// Angular UI Bootstrap provide some excellent directives, but the popover didn't allow for HTML content
-// The popoverHtmlUnsafe and popoverHtmlUnsafePopup implement this on top of the AngularUI Bootstrap's $tooltip service
-.directive( 'popoverHtmlUnsafePopup', function ($templateCache) {
-
- $templateCache.put("template/popover/popover-html-unsafe-popup.html",
- "