-
-
Notifications
You must be signed in to change notification settings - Fork 825
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Over-ride monitor page within the extension
This gives us a usable monitoring page for imports, without having to plan out a solution that covers all potential use cases. It should be a quick way to get this functionality operational
- Loading branch information
1 parent
ae17034
commit f748a01
Showing
2 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<div id='crm-import-progress'></div> | ||
{literal} | ||
<script> | ||
var target = '#crm-import-progress'; | ||
var url = CRM.vars.civiimport.url; | ||
// Load the snippet into the container | ||
CRM.loadPage(url, { | ||
target: target, | ||
block: false | ||
}) | ||
window.setInterval(function() { | ||
CRM.$(target).crmSnippet('refresh'); | ||
}, 1000); | ||
</script> | ||
{/literal} |