Skip to content
This repository was archived by the owner on Oct 2, 2018. It is now read-only.

Commit b1f193a

Browse files
author
Joshua Smith
committed
Add credits link, change about page, increment Bugsense version
1 parent 5f011b8 commit b1f193a

3 files changed

Lines changed: 10 additions & 97 deletions

File tree

about.html

Lines changed: 0 additions & 91 deletions
This file was deleted.

index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,11 @@ <h2>Document actions</h2>
103103
<h2>Help</h2>
104104
<ul>
105105
<li><a href="#" data-click="browser" data-click-location="about">About Firetext</a></li>
106-
<li><a href="http://firetext.codexa.org/support" target="_blank">Firetext support</a></li>
106+
<li><a href="#" data-click="browser" data-click-location="support">Firetext support</a></li>
107107
</ul>
108108
<h2>Other</h2>
109109
<ul>
110+
<li><a href="#" data-click="browser" data-click-location="credits">Credits</a></li>
110111
<li><a href="#" data-click="browser" data-click-location="rate">Rate Firetext</a></li>
111112
</ul>
112113
</nav>
@@ -232,10 +233,11 @@ <h2>Document actions</h2>
232233
<h2>Help</h2>
233234
<ul>
234235
<li><a href="#" data-click="browser" data-click-location="about">About Firetext</a></li>
235-
<li><a href="http://firetext.codexa.org/support" target="_blank">Firetext support</a></li>
236+
<li><a href="#" data-click="browser" data-click-location="support">Firetext support</a></li>
236237
</ul>
237238
<h2>Other</h2>
238239
<ul>
240+
<li><a href="#" data-click="browser" data-click-location="credits">Credits</a></li>
239241
<li><a href="#" data-click="browser" data-click-location="rate">Rate Firetext</a></li>
240242
</ul>
241243
</nav>

scripts/firetext.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ function updateAddDialog() {
218218
------------------------*/
219219
function bugsenseInit() {
220220
if (firetext.settings.get('stats.enabled') != 'false') {
221-
bugsense = new Bugsense({ appversion: '0.3', apiKey: '' });
221+
bugsense = new Bugsense({ appversion: '0.3.1', apiKey: '' });
222222
} else {
223223
bugsense = null;
224224
}
@@ -996,11 +996,13 @@ function processActions(eventAttribute, target) {
996996
// Get location
997997
var browseLocation = '';
998998
if (target.getAttribute(eventAttribute + '-location') == 'about') {
999-
browseLocation = 'about.html';
1000-
} else if (target.getAttribute(eventAttribute + '-location') == 'support') {
1001-
browseLocation = 'http://firetext.codexa.org/support';
999+
browseLocation = 'http://firetext.codexa.org/new/?header=none&footer=none&version=0.3.1&app=1';
1000+
} else if (target.getAttribute(eventAttribute + '-location') == 'credits') {
1001+
browseLocation = 'http://firetext.codexa.org/community/credits?header=none';
10021002
} else if (target.getAttribute(eventAttribute + '-location') == 'rate') {
10031003
browseLocation = 'https://marketplace.firefox.com/app/firetext/ratings/add';
1004+
} else if (target.getAttribute(eventAttribute + '-location') == 'support') {
1005+
browseLocation = 'http://firetext.codexa.org/support?header=none';
10041006
} else {
10051007
browseLocation = target.getAttribute(eventAttribute + '-location');
10061008
}

0 commit comments

Comments
 (0)