[Pkg-mozext-commits] [itsalltext] 234/459: * removed the addTab readme. Added it as an option for textarea.
David Prévot
taffit at moszumanska.debian.org
Tue Feb 24 23:26:25 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository itsalltext.
commit b4a6f7614722b64fe2da9180940e90d7dc46db93
Author: docwhat at gerf.org <docwhat at gerf.org>
Date: Mon Jun 11 09:05:08 2007 -0400
* removed the addTab readme. Added it as an option for textarea.
---
src/chrome/content/itsalltext.js | 25 +++----------------------
src/chrome/content/itsalltext.xul | 4 ++++
src/chrome/locale/en-US/itsalltext.dtd | 14 ++++++++------
src/defaults/preferences/itsalltext.js | 1 -
4 files changed, 15 insertions(+), 29 deletions(-)
diff --git a/src/chrome/content/itsalltext.js b/src/chrome/content/itsalltext.js
index 3e80ab3..78dcbf7 100644
--- a/src/chrome/content/itsalltext.js
+++ b/src/chrome/content/itsalltext.js
@@ -259,7 +259,6 @@ var ItsAllText = function() {
* @type Hash
*/
types: {
- lastversion: 'Char',
charset: 'Char',
editor: 'Char',
refresh: 'Int',
@@ -707,22 +706,9 @@ var ItsAllText = function() {
return true;
};
- that.checkVersion = function() {
- if( that.preferences._get('lastversion') != that.VERSION) {
- setTimeout(function(){
- var browser;
- try{
- if( that.preferences._get('lastversion') != that.VERSION) {
- browser = getBrowser();
- browser.selectedTab = browser.addTab(that.README,
- null);
- that.preferences._set('lastversion', that.VERSION);
- }
- } catch(e) {
- that.preferences._set('lastversion', '');
- }
- }, 100);
- }
+ that.openReadme = function() {
+ browser = getBrowser();
+ browser.selectedTab = browser.addTab(that.README, null);
};
/**
@@ -738,11 +724,6 @@ var ItsAllText = function() {
// Start the monitor
that.monitor.restart();
- // Check if there was an update and show the page...
- window.setTimeout(function() {
- that.checkVersion();
- }, 10);
-
var appcontent = document.getElementById("appcontent"); // The Browser
if (appcontent) {
// Normal web-page.
diff --git a/src/chrome/content/itsalltext.xul b/src/chrome/content/itsalltext.xul
index 983e466..d62f0c1 100644
--- a/src/chrome/content/itsalltext.xul
+++ b/src/chrome/content/itsalltext.xul
@@ -19,6 +19,8 @@
<menuseparator/>
<menuitem label=".txt" oncommand="ItsAllText.menuExtEdit(event);"/>
<menuseparator/>
+ <menuitem label="&pref.readme;"
+ oncommand="ItsAllText.openReadme();"/>
<menuitem label="&pref.label;"
accesskey="&pref.key;"
oncommand="ItsAllText.openPreferences();"/>
@@ -36,6 +38,8 @@
<menuseparator/>
<menuitem label=".txt" oncommand="ItsAllText.menuExtEdit(event);"/>
<menuseparator/>
+ <menuitem label="&pref.readme;"
+ oncommand="ItsAllText.openReadme();"/>
<menuitem label="&pref.label;"
accesskey="&pref.key;"
oncommand="ItsAllText.openPreferences();"/>
diff --git a/src/chrome/locale/en-US/itsalltext.dtd b/src/chrome/locale/en-US/itsalltext.dtd
index a01906a..0be76e2 100644
--- a/src/chrome/locale/en-US/itsalltext.dtd
+++ b/src/chrome/locale/en-US/itsalltext.dtd
@@ -1,12 +1,14 @@
-<!ENTITY top.label "It's All Text!">
-<!ENTITY top.key "i">
+<!ENTITY top.label "It's All Text!">
+<!ENTITY top.key "i">
-<!ENTITY edit.label "Edit with default extension">
-<!ENTITY edit.key "e">
+<!ENTITY edit.label "Edit with default extension">
+<!ENTITY edit.key "e">
<!ENTITY newext.label "Edit with new extension...">
<!ENTITY newext.key "n">
-<!ENTITY pref.label "Preferences...">
-<!ENTITY pref.key "p">
+<!ENTITY pref.label "Preferences...">
+<!ENTITY pref.key "p">
+
+<!ENTITY pref.readme "View the README...">
diff --git a/src/defaults/preferences/itsalltext.js b/src/defaults/preferences/itsalltext.js
index 345f90e..d7f0bb3 100644
--- a/src/defaults/preferences/itsalltext.js
+++ b/src/defaults/preferences/itsalltext.js
@@ -1,4 +1,3 @@
-pref("extensions.itsalltext.lastversion", "");
pref("extensions.itsalltext.charset", "UTF-8");
pref("extensions.itsalltext.editor", "");
pref("extensions.itsalltext.refresh", 3);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git
More information about the Pkg-mozext-commits
mailing list