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

Minor tweaks and events in Goals UI #10844

Merged
merged 4 commits into from Nov 13, 2016
Merged

Minor tweaks and events in Goals UI #10844

merged 4 commits into from Nov 13, 2016

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Nov 7, 2016

ping @mattab

@tsteur tsteur added the Needs Review PRs that need a code review label Nov 7, 2016
@tsteur tsteur added this to the 2.17.1 milestone Nov 7, 2016
&& action != 'ecommerceReport'
&& action != 'products'
&& action != 'sales'
&& (''+ ajaxUrl).indexOf('&idGoal=') === -1) {
Copy link
Member Author

Choose a reason for hiding this comment

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

When idGoal is specifically requested, we still need to keep it

@@ -29,7 +29,8 @@ function hideForms() {

function showCancel() {
$(".entityCancel").show();
$('.entityCancelLink').click(function () {
$('.entityCancelLink').off('click').click(function () {
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 always attached a new event listener when opening a goal but instead need to remove previously added once first

@@ -153,7 +157,7 @@ function ajaxDeleteGoal(idGoal) {
ajaxRequest.addParams(parameters, 'get');
ajaxRequest.setLoadingElement('#goalAjaxLoading');
ajaxRequest.setCallback(function () { location.reload(); });
ajaxRequest.send(true);
ajaxRequest.send();
Copy link
Member Author

Choose a reason for hiding this comment

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

Was sent synchronously which should be avoided at all costs

@mattab mattab merged commit 563697c into 2.x-dev Nov 13, 2016
@mattab mattab deleted the goalevent branch November 13, 2016 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants