[Pkg-mozext-commits] [itsalltext] 02/10: Removed double close buttons in preferences

David Prévot taffit at moszumanska.debian.org
Wed Aug 2 19:08:58 UTC 2017


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository itsalltext.

commit 08ea906b91548a0df7080245d423ab5ef9f96fc7
Author: Christian Höltje <docwhat at gerf.org>
Date:   Tue Oct 4 00:03:45 2016 -0400

    Removed double close buttons in preferences
    
    This was hold over code from when Firefox's preferences were less
    consistent across platforms.
---
 src/chrome/content/preferences.js | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/src/chrome/content/preferences.js b/src/chrome/content/preferences.js
index b034b53..37073fb 100644
--- a/src/chrome/content/preferences.js
+++ b/src/chrome/content/preferences.js
@@ -155,21 +155,6 @@ function pref_onload() {
         desc.style.maxWidth = '18em';
         box.appendChild(desc);
     }
-    if (window['arguments'] && window.arguments[1]) {
-        var button = document.createElement('button');
-        button.setAttribute('label', locale.getString('close.button'));
-        button.addEventListener('command', function (event) { window.close(); }, true);
-
-        var spacer = document.createElement('spacer');
-        spacer.setAttribute('flex', 1);
-
-        var box = document.createElement('hbox');
-        box.appendChild(spacer);
-        box.appendChild(button);
-
-        var pane = document.getElementById('itsalltext-pane');
-        pane.appendChild(box);
-    }
 
     update_hotkey('disp-hotkey');
 }

-- 
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