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

Q.text missing in dialogutils.ts #3824

Closed
stefano5885 opened this issue Aug 9, 2018 · 3 comments
Closed

Q.text missing in dialogutils.ts #3824

stefano5885 opened this issue Aug 9, 2018 · 3 comments

Comments

@stefano5885
Copy link

stefano5885 commented Aug 9, 2018

In DialogUtils.ts:

Missing Q.text('....')

code right:

namespace GSIS.DialogUtils {
    export function pendingChangesConfirmation(element: JQuery, hasPendingChanges: () => boolean) {
        element.on('dialogbeforeclose panelbeforeclose', function (e) {
            if (!Serenity.WX.hasOriginalEvent(e) || !hasPendingChanges()) {
                return;
            }
            e.preventDefault();
            Q.confirm(Q.text('Site.Dialogs.PendingChangesConfirmation'),
                () => element.find('div.save-and-close-button').click(),
                {
                    onNo: function () {
                        if (element.hasClass('ui-dialog-content'))
                            element.dialog('close');
                        else if (element.hasClass('s-Panel'))
                            Serenity.TemplatedDialog.closePanel(element);
                    }
                });
        });
    }
}
@stefano5885 stefano5885 changed the title Q.text missingi in dialogutils.ts Q.text missing in dialogutils.ts Aug 9, 2018
@ga5tan
Copy link

ga5tan commented Aug 10, 2018

what is missing?
Q.text function?
or your variable?
if it's your variable, u may need to transfer templates to get it where u want it

@stefano5885
Copy link
Author

stefano5885 commented Aug 10, 2018

Q.text is missing.
It's a bug.

S.

@volkanceylan
Copy link
Member

You are free to modify it to a local text.

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

No branches or pull requests

3 participants