Skip to content

Commit

Permalink
version 1.0.5 (correction of mistake in packaging version 1.0.4 that …
Browse files Browse the repository at this point in the history
…prevented it from running)
  • Loading branch information
DDvO committed Jun 9, 2018
1 parent aa412ff commit d652077
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 8 deletions.
11 changes: 11 additions & 0 deletions chrome/content/duplicateContactsManager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
var DuplicateContactsManager = {
manageDuplicatesIsRunning: false,
menuButtonAction: function() {
this.manageDuplicates();
},
manageDuplicates: function() {
this.manageDuplicatesIsRunning = true;
var dupwindow = window.open('chrome://duplicatecontactsmanager/content/duplicateEntriesWindow.xul', "Duplicate Contacts Manager", "chrome,centerscreen");
dupwindow.focus();
}
}
28 changes: 28 additions & 0 deletions chrome/content/duplicateContactsManager.xul
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE overlay SYSTEM "chrome://duplicatecontactsmanager/locale/duplicateContactsManager.dtd">
<?xml-stylesheet type="text/css" href="chrome://duplicatecontactsmanager/skin/duplicateContactsManager.css"?>

<overlay id="duplicateContactsManager.overlay.menuitem"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="init();">

<!--<script type="application/x-javascript" src="chrome://duplicatecontactsmanager/content/windowsregistry.js"/>-->
<script type="application/x-javascript" src="chrome://duplicatecontactsmanager/content/duplicateContactsManager.js"/>
<script type="application/x-javascript" src="chrome://duplicatecontactsmanager/content/duplicateEntriesWindow.js"/>
<command id="cmd_handle_duplicates" disabled="false"/>
<menu id="tasksMenu">
<menupopup id="taskPopup">
<menuitem id="duplicateContactsManagerMenu_manageDuplicates"
label="&abookmenu.items.handleduplicates.label;"
oncommand="DuplicateContactsManager.manageDuplicates();"
accesskey="&abookmenu.items.handleduplicates.accesskey;" />
</menupopup>
</menu>
<!-- Thunderbird address book -->
<toolbarpalette id="AddressBookToolbarPalette">
<toolbarbutton id="duplicatecontactsmanager-toolbarbutton-1"
label="&abooktoolbar.label;"
tooltiptext="&abooktoolbar.tooltip;"
oncommand="DuplicateContactsManager.manageDuplicates();"
class="toolbarbutton-1 chromeclass-toolbar-additional custombutton" />
</toolbarpalette>
</overlay>
4 changes: 3 additions & 1 deletion chrome/content/duplicateEntriesWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
// This file includes UTF-8 encoding. Please make sure your text editor can deal with this prior to saving any changes!

/* Change history:
* Version 1.0.5:
* - correction of mistake in packaging version 1.0.4 that prevented it from running
* Version 1.0.4:
* - various small UI improvments: indication for card matching, layout, language, doc
* Version 1.0.3:
* - fixed syntax error in de-DE locale that lead to obscure initialization error
* - minor improvements of localization in the extension and of the entry in the TB add-ons list
* Version 1.0.2 and 1.0.2:
* Version 1.0.1 and 1.0.2:
* - improved label of DCM menu entry for address book window
* Version 1.0:
* - major speedup in particular when searching for duplicates in large address books
Expand Down
9 changes: 5 additions & 4 deletions chrome/content/duplicateEntriesWindow.xul
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<!DOCTYPE overlay SYSTEM "chrome://duplicatecontactsmanager/locale/duplicateContactsManager.dtd">
<?xml-stylesheet href="chrome://messenger/skin/addressbook/addressbook.css" type="text/css"?>
<?xml-stylesheet href="chrome://duplicatecontactsmanager/skin/duplicateContactsManager.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/content/bindings.css" type="text/css"?>
<window
id="handleDuplicates-window"
title="&handleDuplicates.windowtitle;"
Expand Down Expand Up @@ -35,25 +36,25 @@
disabled="true"
visibility="hidden"
accesskey="&handleDuplicates.keepnextbutton.accesskey;"
oncommand="DuplicateEntriesWindow.keepAndSearchNextDuplicate();" />
oncommand="DuplicateEntriesWindow.keepAndSearchNextDuplicate()" />
<button id="applynextbutton"
class="dialog"
label="&handleDuplicates.applynextbutton.label;"
disabled="true"
visibility="hidden"
accesskey="&handleDuplicates.applynextbutton.accesskey;"
oncommand="DuplicateEntriesWindow.applyAndSearchNextDuplicate();" />
oncommand="DuplicateEntriesWindow.applyAndSearchNextDuplicate()" />
<spacer flex="3" />
<button id="stopbutton" style="display: none"
class="dialog"
label="&handleDuplicates.stopbutton.label;"
disabled="false"
oncommand="DuplicateEntriesWindow.endSearch();" />
oncommand="DuplicateEntriesWindow.endSearch()" />
<button id="quitbutton"
class="dialog"
label="&handleDuplicates.quitbutton.label;"
disabled="false"
oncommand="window.close();" />
oncommand="window.close()" />
</hbox>
<hbox id="statusBar">
<hbox id="statusText" flex="3">
Expand Down
4 changes: 2 additions & 2 deletions install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Description about="urn:mozilla:install-manifest">
<em:name>Duplicate Contacts Manager</em:name>
<em:id>[email protected]</em:id>
<em:version>1.0.4</em:version>
<em:version>1.0.5</em:version>
<em:description>Facilitates handling of redundant entries in address books.</em:description>
<em:creator>Marian Steinbach and David von Oheimb</em:creator>
<em:contributor>François Godin (Copelnug)</em:contributor>
Expand All @@ -22,7 +22,7 @@
<Description>
<em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
<em:minVersion>3.0</em:minVersion>
<em:maxVersion>61.*</em:maxVersion>
<em:maxVersion>60.*</em:maxVersion>
</Description>
</em:targetApplication>
<em:localized>
Expand Down
3 changes: 2 additions & 1 deletion zip.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#cd [email protected]
zip -r ../duplicatecontactsmanager-1.0.xpi . -x \*~ .git/\* .git README.md zip.sh .gitignore doc/\* chrome/content/duplicateContactsManager\* @
zip -r ../duplicatecontactsmanager-1.0.xpi . -x \*~ .git/\* .git README.md zip.sh .gitignore doc/\*
#chrome/content/duplicateContactsManager\* @

0 comments on commit d652077

Please sign in to comment.