Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes after editing a file and clicking Save & View a "Leave site?" message box appears #30 #33

Merged
merged 4 commits into from
Sep 16, 2022

Conversation

trrenty
Copy link
Contributor

@trrenty trrenty commented Sep 16, 2022

…cation 2.0-rc-2 xwikisas#29

* Fixed one of the warnings that polluted the XWiki console, namely `com.xpn.xwiki.api.DeprecatedContext.getAction` deprecated usage.
@trrenty trrenty self-assigned this Sep 16, 2022
Copy link
Contributor

@mflorea mflorea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a small suggestion.

@@ -262,6 +262,7 @@ define(['jquery'], function ($) {
onReady: onReady,
onDownloadAs: function (evt) { saveCallbackOO(evt.data.url || evt.data); },
onRequestEditRights: function () { docEditor.applyEditRights(true); },
onDocumentStateChange: function (evt) { evt.data ? $('#button-sav').prop('disabled', true) : $('#button-sav').prop('disabled', false); },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
onDocumentStateChange: function (evt) { evt.data ? $('#button-sav').prop('disabled', true) : $('#button-sav').prop('disabled', false); },
onDocumentStateChange: function (evt) {
$('#button-sav').prop('disabled', !!evt.data);
},

…?" message box appears xwikisas#30

* Replace ternary operator with a cleaner line of code.
@trrenty trrenty merged commit bb146b7 into xwikisas:master Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants