Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
javascripts: polishing some leftovers
Browse files Browse the repository at this point in the history
This commit removes some leftovers from the Coffeescript -> Javascript
move.

Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
  • Loading branch information
mssola committed Feb 27, 2017
1 parent 9db7b69 commit d30bc2b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
};

float_alert.setTimeOutAlertDelay = function () {
return setTimeout(function () {
return $('.alert-hide').click();
setTimeout(function () {
$('.alert-hide').click();
}, 4000);
};

Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/bootstrap.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
jQuery(function ($) {
$('a[rel~=popover], .has-popover').popover();
return $('a[rel~=tooltip], .has-tooltip').tooltip();
$('a[rel~=tooltip], .has-tooltip').tooltip();
});
10 changes: 5 additions & 5 deletions app/assets/javascripts/dashboard.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
jQuery(function () {
jQuery(function ($) {
$('#starred a').on('click', function (e) {
e.preventDefault();
return $(this).tab('show');
$(this).tab('show');
});

$('#all a').on('click', function (e) {
e.preventDefault();
return $(this).tab('show');
$(this).tab('show');
});

return $('#personal a').on('click', function (e) {
$('#personal a').on('click', function (e) {
e.preventDefault();
return $(this).tab('show');
$(this).tab('show');
});
});

0 comments on commit d30bc2b

Please sign in to comment.