1
0

cleanup note in cb0ba6c

This commit is contained in:
Ian
2014-03-17 19:36:19 +01:00
parent cb0ba6cf7e
commit 76f87c5e08

View File

@ -114,12 +114,11 @@ function create(htmlStr) {
if ($serendipity['wysiwyg']) {
if (isset($eventData['item']) && !empty($eventData['item'])) {
if (isset($eventData['buttons']) && (is_array($eventData['buttons']) && !empty($eventData['buttons']))) {
// case staticpage nuggets
// case staticpage nuggets - pulled by if (window.Spawnnuggets) Spawnnuggets(n);
?>
<script type="text/javascript">
$( document ).ready(function() {
// send eventData as json encoded array into the javascript stream, which can be pulled by 'backend_header' hooks global Spawnnuggets() nugget function
jsEventData = <?php echo json_encode($eventData['buttons']); ?>;//case2
});
</script>