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

[TBD] - Refactoring of dataeditor.js #3528

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

surli
Copy link
Member

@surli surli commented Sep 30, 2024

WIP

Introduction of action in meta.js
Refactoring of dataeditors.js to get rid of prototype and to use xm.action for performing AJAX requests.

Jira URL

Changes

Description

Clarifications

Screenshots & Video

Executed Tests

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    *

@surli surli changed the title [TBD] [TBD] - Refactoring of dataeditor.js Sep 30, 2024
@surli surli force-pushed the refactoring-dataeditors branch 4 times, most recently from aab96a1 to 7ed3418 Compare October 2, 2024 14:01
WIP

Introduction of action in meta.js
Refactoring of dataeditors.js to get rid of prototype and to use
xm.action for performing AJAX requests.
var xclassName = this.getXClassNameFromXObjectId(object.id);
var addedObjects = this.editorStatus.addedXObjects[xclassName];
notification.replace(new XWiki.widgets.Notification(l10n['core.editors.object.add.done'], "done"));
xm.refreshVersion();
Copy link
Member Author

Choose a reason for hiding this comment

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

We don't need to call a refresh version each time an object is added anymore, since we only save the added object when clicking on save button, which should trigger the refresh.

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.

1 participant