-
Notifications
You must be signed in to change notification settings - Fork 0
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
Remove duplicated spinner #38
Conversation
I don't think this is the right way to fix it; the spinner is duplicated, so probably we don't need to redeclare it in this package. |
@hvelarde it is true for Plone 4.3.x, but for Plone 5.x we will miss the spinner if I remove it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem here is simpler: our spinner declaration activates Plone's default spinner and then it's shown twice; I don't want to use the default spinner; I want to show only ours.
Ok, let's start again :) |
@@ -140,6 +140,8 @@ | |||
parser.pathname = parser.pathname + '/recent-updates'; | |||
$.ajax({ | |||
url: parser.href, | |||
// Don't show plone default spinner | |||
global: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http://api.jquery.com/jquery.ajax/
global (default: true)
Type: Boolean
Whether to trigger global Ajax event handlers for this request. The default is true. Set to
false to prevent the global handlers like ajaxStart or ajaxStop from being triggered. This
can be used to control various Ajax Events.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -95,6 +95,8 @@ | |||
parser.pathname = parser.pathname + '/recent-updates'; | |||
$.ajax({ | |||
url: parser.href, | |||
// Don't show plone default spinner | |||
global: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http://api.jquery.com/jquery.ajax/
global (default: true)
Type: Boolean
Whether to trigger global Ajax event handlers for this request. The default is true. Set to
false to prevent the global handlers like ajaxStart or ajaxStop from being triggered. This
can be used to control various Ajax Events.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any problems if the spinner is only duplicated during AJAX calls; I thinks it's even better to show it. |
closes #35