Skip to content

Commit

Permalink
Merge pull request #2 from pkp/master
Browse files Browse the repository at this point in the history
Merge n.2
  • Loading branch information
Zeno Tajoli authored Oct 23, 2018
2 parents 60bc4c3 + d19b36a commit 9903370
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 16 deletions.
11 changes: 7 additions & 4 deletions js/controllers/grid/articleGalleys/ArticleGalleyGridHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,13 @@
prototype.uploadFileHandler_ = function(sourceElement, event, rowId) {

// FIXME: Inter-widget messaging is needed here.
setTimeout(function() {
$('a[id^="component-grid-articlegalleys-articlegalleygrid-row-' + rowId +
'-addFile-button-"]').click();
}, 0);
var selector = 'a[id^="component-grid-articlegalleys-articlegalleygrid-row-' +
rowId + '-addFile-button-"]';
$.when($(selector)).then(function() {
$(function() {
$(selector).click();
});
});
};


Expand Down
16 changes: 8 additions & 8 deletions js/pkp.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion locale/fi_FI/default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -172,5 +172,5 @@ Noudata seuraavaa protokollaa tehdessäsi elektronisia korjauksia käsikirjoituk
<message key="default.groups.abbrev.externalReviewer">A</message>
<message key="default.journalSettings.emailSignature"><![CDATA[<br/>
________________________________________________________________________<br/>
<a href="{$ldelim}$contextUrl{$rdelim}">{$ldelim} $contextName {$rdelim}</a>]]></message>
<a href="{$ldelim}$contextUrl{$rdelim}">{$ldelim}$contextName{$rdelim}</a>]]></message>
</locale>
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ function createJournalArticleNode($doc, $submission) {
$personNameNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'ORCID', $author->getData('orcid')));
}
$contributorsNode->appendChild($personNameNode);
$isFirst = false;
}
$journalArticleNode->appendChild($contributorsNode);

Expand Down
4 changes: 2 additions & 2 deletions plugins/themes/default/DefaultThemePlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ public function init() {
$jqueryUI = '//ajax.googleapis.com/ajax/libs/jqueryui/' . CDN_JQUERY_UI_VERSION . '/jquery-ui' . $min . '.js';
} else {
// Use OJS's built-in jQuery files
$jquery = $request->getBaseUrl() . '/lib/pkp/lib/components/jquery/jquery' . $min . '.js';
$jqueryUI = $request->getBaseUrl() . '/lib/pkp/lib/components/jquery-ui/jquery-ui' . $min . '.js';
$jquery = $request->getBaseUrl() . '/lib/pkp/lib/vendor/components/jquery/jquery' . $min . '.js';
$jqueryUI = $request->getBaseUrl() . '/lib/pkp/lib/vendor/components/jqueryui/jquery-ui' . $min . '.js';
}
// Use an empty `baseUrl` argument to prevent the theme from looking for
// the files within the theme directory
Expand Down

0 comments on commit 9903370

Please sign in to comment.