Skip to content
Snippets Groups Projects
Commit 4e8f6199 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Decouple record.js from document.ready.

parent fc8c6592
Branches
Tags
No related merge requests found
......@@ -287,7 +287,7 @@ function setupRecordToolbar(target) {
});
}
$(document).ready(function(){
function recordDocReady() {
var id = $('.hiddenId')[0].value;
registerTabEvents();
......@@ -348,4 +348,4 @@ $(document).ready(function(){
refreshTagList(true);
Lightbox.confirm(vufindString['add_tag_success']);
});
});
}
......@@ -95,3 +95,4 @@
</div>
<? endif; ?>
</div>
<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, '$(document).ready(recordDocReady);', 'SET') ?>
\ No newline at end of file
......@@ -89,3 +89,4 @@
<? endforeach; ?>
</div>
</div>
<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, '$(document).ready(recordDocReady);', 'SET') ?>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment