Skip to content

Commit

Permalink
Improved translation interface
Browse files Browse the repository at this point in the history
  • Loading branch information
frianasoa committed Dec 13, 2023
1 parent 561fab3 commit 7a15005
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
9 changes: 6 additions & 3 deletions content/settings/preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,15 @@ Zotero_Preferences.ZeNotes = {

addcombobox(itemid, options, value){
var menulist = document.getElementById(itemid);
if (Zotero.platformMajorVersion < 102)
if(Zotero.platformMajorVersion < 102)
{
if(menulist.tagName.toUpperCase()!="SELECT")
{
var p = menulist.parentNode.parentNode;
menulist.parentNode.remove();
var sel = document.createElement("select");
p.insertBefore(sel, p.firstChild);
sel.setAttribute("id", "zn-load-settings");
sel.setAttribute("id", itemid);
menulist = sel;
}
else
Expand Down Expand Up @@ -205,7 +205,10 @@ Zotero_Preferences.ZeNotes = {
loadpreferences()
{
var lsettings = document.getElementById("zn-load-settings");

if(lsettings==null)
{
return;
}
if (Zotero.platformMajorVersion < 102)
{
if(lsettings.tagName.toUpperCase()!="SELECT")
Expand Down
2 changes: 1 addition & 1 deletion install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Description about="urn:mozilla:install-manifest">
<em:id>[email protected]</em:id>
<em:name>ZeNotes</em:name>
<em:version>0.5.6</em:version>
<em:version>0.5.7</em:version>
<em:multiprocessCompatible>true</em:multiprocessCompatible>
<em:updateURL>https://raw.githubusercontent.com/frianasoa/zenotes/main/zenote-update.json</em:updateURL>
<em:homepageURL>https://github.com/frianasoa/zenotes</em:homepageURL>
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Ze Notes",
"version": "0.5.6",
"version": "0.5.7",
"description": "Advanced notes manager",
"homepage_url": "https://github.com/frianasoa/zenotes",
"author": "Fanantenana Rianasoa Andriariniaina",
Expand Down
6 changes: 3 additions & 3 deletions zenote-update.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"[email protected]": {
"updates": [
{
"version": "0.5.6",
"update_link": "https://github.com/frianasoa/Ze-Notes/releases/download/v0.5.6/zenotes-v0.5.6.xpi",
"update_hash": "sha256:89dc6371d56568920a5057b3916f92c231ad6d28763711f53086831bfe6f259a",
"version": "0.5.7",
"update_link": "https://github.com/frianasoa/Ze-Notes/releases/download/v0.5.7/zenotes-v0.5.7.xpi",
"update_hash": "sha256:4ac0e03c6b45aa703afdff09647f3dfc4ea6389d05bb98d9e3e4efd9fe910d6b",
"applications": {
"gecko": {
"strict_min_version": "60.0"
Expand Down
6 changes: 3 additions & 3 deletions zenote-update.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<rdf:Seq>
<rdf:li>
<rdf:Description>
<ns1:version>0.5.6</ns1:version>
<ns1:version>0.5.7</ns1:version>
<ns1:targetApplication>
<rdf:Description>
<ns1:id>[email protected]</ns1:id>
<ns1:minVersion>5.0.0</ns1:minVersion>
<ns1:maxVersion>6.*</ns1:maxVersion>
<ns1:updateLink>https://github.com/frianasoa/Ze-Notes/releases/download/v0.5.6/zenotes-v0.5.6.xpi</ns1:updateLink>
<ns1:updateLink>https://github.com/frianasoa/Ze-Notes/releases/download/v0.5.7/zenotes-v0.5.7.xpi</ns1:updateLink>
</rdf:Description>
</ns1:targetApplication>

Expand All @@ -20,7 +20,7 @@
<ns1:id>[email protected]</ns1:id>
<ns1:minVersion>4.999</ns1:minVersion>
<ns1:maxVersion>6.*</ns1:maxVersion>
<ns1:updateLink>https://github.com/frianasoa/Ze-Notes/releases/download/v0.5.6/zenotes-v0.5.6.xpi</ns1:updateLink>
<ns1:updateLink>https://github.com/frianasoa/Ze-Notes/releases/download/v0.5.7/zenotes-v0.5.7.xpi</ns1:updateLink>
</rdf:Description>
</ns1:targetApplication>

Expand Down

0 comments on commit 7a15005

Please sign in to comment.