From 4e4c19e6aafce088192ece3e13fda3136279c588 Mon Sep 17 00:00:00 2001 From: Gregory Koberger Date: Wed, 13 Apr 2011 17:57:29 -0700 Subject: [PATCH] Add InstallTriggers to editor tools (bug 647309) --- apps/editors/templates/editors/review.html | 3 ++- media/js/zamboni/editors.js | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/apps/editors/templates/editors/review.html b/apps/editors/templates/editors/review.html index 674c362c67..21cbabe13f 100644 --- a/apps/editors/templates/editors/review.html +++ b/apps/editors/templates/editors/review.html @@ -88,7 +88,8 @@ {% for file in version.files.all() %}
  • {{ file.platform }} - [{{ file.filename }}] + [{{ file.filename }}]
    {{ file_review_status(addon, file) }} · diff --git a/media/js/zamboni/editors.js b/media/js/zamboni/editors.js index 80efb96fd1..f8553f597a 100644 --- a/media/js/zamboni/editors.js +++ b/media/js/zamboni/editors.js @@ -93,6 +93,15 @@ function initReviewActions() { } $files_input.change(toggle_input).each(toggle_input); + + /* Install Triggers */ + + $('.files .install').click(_pd(function(){ + var $this = $(this), + installer = $this.is('[data-type=search-tools]') ? z.installSearch : z.installAddon; + installer($this.text(), $this.attr('href'), "") + })); + } function insertAtCursor(textarea, text) {