var script = document.createElement('script');
scriptsLoaded[url] = $.Deferred();
script.onload = function () {
- if (window.jQuery === CRM.$ && CRM.CMSjQuery) {
- window.jQuery = CRM.CMSjQuery;
- }
- scriptsLoaded[url].resolve();
+ // Give the script time to execute
+ window.setTimeout(function () {
+ if (window.jQuery === CRM.$ && CRM.CMSjQuery) {
+ window.jQuery = CRM.CMSjQuery;
+ }
+ scriptsLoaded[url].resolve();
+ }, 100);
};
// Make jQuery global available while script is loading
if (window.jQuery !== CRM.$) {
return format.replace(/1.*234.*56/, result);
};
+ CRM.angRequires = function(name) {
+ return CRM.angular.requires[name] || [];
+ };
+
CRM.console = function(method, title, msg) {
if (window.console) {
method = $.isFunction(console[method]) ? method : 'log';