summaryrefslogtreecommitdiffstats
path: root/extensions/Bitly/template/en/default/hook
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/Bitly/template/en/default/hook')
-rw-r--r--extensions/Bitly/template/en/default/hook/global/header-start.html.tmpl12
-rw-r--r--extensions/Bitly/template/en/default/hook/list/list-links.html.tmpl17
2 files changed, 16 insertions, 13 deletions
diff --git a/extensions/Bitly/template/en/default/hook/global/header-start.html.tmpl b/extensions/Bitly/template/en/default/hook/global/header-start.html.tmpl
index ba698aa2c..d41320b29 100644
--- a/extensions/Bitly/template/en/default/hook/global/header-start.html.tmpl
+++ b/extensions/Bitly/template/en/default/hook/global/header-start.html.tmpl
@@ -6,8 +6,10 @@
# defined by the Mozilla Public License, v. 2.0.
#%]
-[% RETURN UNLESS template.name == 'list/list.html.tmpl' %]
-
-[% style_urls.push('extensions/Bitly/web/styles/bitly.css') %]
-[% javascript_urls.push('extensions/Bitly/web/js/bitly.js') %]
-[% yui.push('container', 'connection', 'json') %]
+[%
+ RETURN UNLESS template.name == 'list/list.html.tmpl';
+ jquery.push('bPopup');
+ style_urls.push('extensions/Bitly/web/styles/bitly.css');
+ javascript_urls.push('extensions/Bitly/web/js/bitly.js');
+ generate_api_token = 1;
+%]
diff --git a/extensions/Bitly/template/en/default/hook/list/list-links.html.tmpl b/extensions/Bitly/template/en/default/hook/list/list-links.html.tmpl
index 836c017ed..e0dcdc708 100644
--- a/extensions/Bitly/template/en/default/hook/list/list-links.html.tmpl
+++ b/extensions/Bitly/template/en/default/hook/list/list-links.html.tmpl
@@ -8,17 +8,18 @@
[% RETURN UNLESS user.id && Bugzilla.params.bitly_token %]
-<div id="bitly_overlay">
- <div class="bd">
- <select id="bitly_type" onchange="YAHOO.bitly.execute()">
+<div id="bitly-overlay">
+ <div>
+ <select id="bitly-type">
<option value="shorten">Share a link to this search</option>
<option value="list">Share a link to this list of [% terms.bugs %]</option>
</select>
- <input id="bitly_url" readonly placeholder="Generating short link...">
- </div>
- <div class="ft">
- <button id="bitly_close" class="notransition">Close</button>
+ <input id="bitly-url" readonly placeholder="Generating short link...">
</div>
+ <button id="bitly-close" class="notransition">Close</button>
</div>
-<a id="bitly_shorten" href="#" onclick="YAHOO.bitly.toggle();return false">Short URL</a>
+<a id="bitly-shorten" href="#"
+ data-url="[% urlbase _ "buglist.cgi?" _
+ cgi.new(urlquerypart).canonicalise_query('list_id','query_format') FILTER html %]"
+>Short URL</a>
|&nbsp; [%# using nbsp because tt always trims trailing whitespace from templates %]