Browse files

Directly show context-menu actions.

  • Loading branch information...
1 parent 66b51fb commit a4d67dc9dd7b2b98042e5cbfc84efb542989d323 @huerlisi committed May 26, 2012
Showing with 0 additions and 10 deletions.
  1. +0 −10 public/javascripts/application.js
View
10 public/javascripts/application.js
@@ -34,18 +34,10 @@ function generateWordMenu(text) {
}
function createWordMenu(text) {
- return '<a href="#" class="publish-menu" data-text="' + text +'">Veröffentlichen</a>';
-}
-
-function publishMenuBehaviour() {
- $('.publish-menu').live('click', function(){
- var text = $(this).attr('data-text');
-
$('#context-menu').empty()
.append(createLinkToPNGDownload(text))
.append(generateShareLink(text))
.append(createPublishToFacebookLink(text));
- });
}
// Containers
@@ -213,8 +205,6 @@ function initializeBehaviours() {
updateWord($('#title').text());
}
- publishMenuBehaviour();
-
// initialize only on /words/:id page.
addColorizeTextBehaviour();
initializeTooltips();

0 comments on commit a4d67dc

Please sign in to comment.