summaryrefslogtreecommitdiff
path: root/openstack_dashboard/contrib/developer/static/dashboard/developer/theme-preview/theme-preview.directive.js
diff options
context:
space:
mode:
Diffstat (limited to 'openstack_dashboard/contrib/developer/static/dashboard/developer/theme-preview/theme-preview.directive.js')
-rw-r--r--openstack_dashboard/contrib/developer/static/dashboard/developer/theme-preview/theme-preview.directive.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/openstack_dashboard/contrib/developer/static/dashboard/developer/theme-preview/theme-preview.directive.js b/openstack_dashboard/contrib/developer/static/dashboard/developer/theme-preview/theme-preview.directive.js
index f7abf562a..fc67dcc7c 100644
--- a/openstack_dashboard/contrib/developer/static/dashboard/developer/theme-preview/theme-preview.directive.js
+++ b/openstack_dashboard/contrib/developer/static/dashboard/developer/theme-preview/theme-preview.directive.js
@@ -43,7 +43,7 @@
function link(scope, element) {
//TODO(tqtran) Use angular, not jQuery
- $('a[href="#"]').click(function(e) {
+ $('a[href="#"]').on('click', function(e) {
e.preventDefault();
});
@@ -51,7 +51,7 @@
var $pre = $uibModal.find('pre');
var $button = $('<div id="source-button" class="btn btn-primary btn-xs"><span class="fa fa-code"></span></div>')
- .click(function(){
+ .on('click', function(){
var $parent = $(this).parent();
var $fragment = stripAngular($parent.clone());