Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Commit

Permalink
Fixed recursive module calling for content versions when configuratio…
Browse files Browse the repository at this point in the history
…n changed
  • Loading branch information
cliftonc committed Jun 19, 2011
1 parent 443a140 commit 93697fc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/core/admin/templates/reload.html
Expand Up @@ -2,8 +2,9 @@
<script>
//TODO add flash notice to show update has taken place
//TODO add page names to admin form options, pass that here to redirect back to where we came from
$(document).ready(function() {
window.location.replace("/admin/core/config");
$(document).ready(function() {
// window.location.replace("/admin/core/config");
});
</script>
</script>
<a href="/admin/core/config">Return ...</a>
</div>
6 changes: 6 additions & 0 deletions modules/core/contentVersions/contentVersions.module.js
Expand Up @@ -68,6 +68,12 @@ function init(module,app,next) {
});

// Form alteration
if(calipso.modules.content.fn.originalContentForm) {
// We have already altered the form, so lets set it back before altering it
calipso.modules.content.fn.contentForm = calipso.modules.content.fn.originalContentForm;
}

// Now, lets alter the form
calipso.modules.content.fn.originalContentForm = calipso.modules.content.fn.contentForm;
calipso.modules.content.fn.contentForm = function() {
var form = calipso.modules.content.fn.originalContentForm();
Expand Down

0 comments on commit 93697fc

Please sign in to comment.