-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
CRM-21602 Fix javascript error on Campaign/petition pages #11466
Conversation
… Survey when jQuery noConflict is not initiated
Can one of the admins verify this patch? |
@coolbit thanks for the PR :)
Then put Then force push your changes |
@colemanw Thanks! |
Force pushing to the same branch will just update this PR. |
There is an issue while squashing the commits. It says "could not apply b638c71... Set version to 4.7.29". I think since there is a version change, it is having some difficulty. Will that be OK if I take the master, do the fix and make a PR again? or what is the best way it should be done? I'm quite new here and getting familiarized with the practices. Sorry for any inconveniences caused. Thanks, |
Ok try this:
|
c927f56
to
ecc71ac
Compare
Did it. Please check :-) |
Looks great. |
Overview
Fixed the JavaScript error occurred when viewing and do actions on Campaigns page Campaigns/Surveys/Petitions. The bug report was continuous loading icon when enabling/disabling campaigns
Before
The loading icon did not disappear when enabling/disabling campaigns
After
The loading icon disappears when enabling/disabling campaigns
Technical Details
Added CRM.$ instead of $ for jQuery selectors where applicable.
Branch rebased to master.
Comments
There are 3 pages Campaign/Petition/Survey. The Campaign page uses
(function($){
})(CRM.$)
hence within that function, $ can be used freely instead of CRM.$.
But other two pages Petition/Survey do not use that technique. Therefore CRM.$ needs to be used instead of $.