Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Directly show context-menu actions.

  • Loading branch information...
commit a4d67dc9dd7b2b98042e5cbfc84efb542989d323 1 parent 66b51fb
@huerlisi authored
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();
Please sign in to comment.
Something went wrong with that request. Please try again.