Fixes my publication wizard on linux, Closes #738

Also:
- Removes horizontal scrollbar in linux my publications wizard, Closes
  #740
This commit is contained in:
Adomas Venčkauskas 2015-11-10 16:46:47 +00:00
parent 8197fa4ce8
commit 234c94be67
3 changed files with 9 additions and 6 deletions

View file

@ -0,0 +1,4 @@
/* There's an ugly horizontal scrollbar on linux in some steps of the wizard, which this fixes */
.wizard-page-box {
margin: 10px 40px;
}

View file

@ -129,9 +129,7 @@ var Zotero_Publications_Dialog = new function () {
var wizard = document.getElementById('zotero-publications-wizard');
var currentPage = wizard.currentPage;
var nextPage = wizard.wizardPages[wizard.pageIndex + 1];
var pageid = wizard.currentPage.pageid;
var nextButton = wizard.getButton('next');
var finishButton = wizard.getButton('finish');
// Require authorship checkbox on first page to be checked to advance
wizard.canAdvance = document.getElementById('confirm-authorship-checkbox').checked;
@ -147,8 +145,6 @@ var Zotero_Publications_Dialog = new function () {
&& _shareSettings.sharing == 'cc'
&& !(_hasRights == 'all' && _keepRights))) {
this.lastPage = false;
finishButton.hidden = true;
nextButton.hidden = false;
nextButton.label = Zotero.getString(
'publications.buttons.next',
Zotero.getString('publications.buttons.' + nextPage.pageid)
@ -157,8 +153,10 @@ var Zotero_Publications_Dialog = new function () {
// Otherwise this is the last page
else {
this.lastPage = true;
nextButton.hidden = true;
finishButton.hidden = false;
// Due to issues with linux not handling finish button hiding correctly
// we just set the next button label to be the one for the finish button
// and leave visibility handling up to mr wizard
nextButton.label = Zotero.getString('publications.buttons.addToMyPublications');
}
}

View file

@ -31,6 +31,7 @@
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://zotero/skin/zotero.css" type="text/css"?>
<?xml-stylesheet href="chrome://zotero/skin/publicationsDialog.css" type="text/css"?>
<?xml-stylesheet href="chrome://zotero-platform/content/publicationsDialog.css"?>
<wizard id="zotero-publications-wizard" title="&zotero.publications.my_publications;"
width="600"