-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
dev/accessibility#10 : Moved datepicker widget to a separate file #12631
Conversation
(Standard links)
|
js/Common.js
Outdated
@@ -646,155 +646,14 @@ if (!CRM.vars) CRM.vars = {}; | |||
return combined; | |||
} | |||
|
|||
function copyAttributes($source, $target, attributes) { | |||
CRM.utils.copyAttributes = function ($source, $target, attributes) { | |||
_.each(attributes, function(name) { | |||
if ($source.attr(name) !== undefined) { | |||
$target.attr(name, $source.attr(name)); | |||
} | |||
}); | |||
} |
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.
Jenkins says this line is missing a semicolon.
d54be98
to
29e9738
Compare
@monishdeb test errors relate |
29e9738
to
da77bab
Compare
I see @colemanw do I need to include the new file anywhere in test suite, as I checked on the UI where |
Yes I suspect the new file needs to be included in Karma setup somewhere... but grepping around so far I can't find where. |
guessing maybe in this array https://github.com/civicrm/civicrm-core/blob/master/karma.conf.js#L25 |
da77bab
to
e9b9d4d
Compare
Thanks a lot @seamuslee001 indeed it seems to be the point. |
Jenkins test this please |
1 similar comment
Jenkins test this please |
updateInputFields(); | ||
}); | ||
}; | ||
})(jQuery, CRM, CRM._); |
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.
@monishdeb phantomjs is complaining about not able to find CRM
I think the date picker file needs to be loaded after Common.js
e9b9d4d
to
403c52a
Compare
Merging as per the tag |
Thanks @seamuslee001 :) |
Overview
This is a subPR of #12580 and to move datepicker functionality to a separate file