From 844a84ea0514a3d9e52653628b9f2cfa7ce808bf Mon Sep 17 00:00:00 2001 From: Andrew Collington Date: Wed, 26 Nov 2014 10:14:44 +0000 Subject: [PATCH] Made functions output via PHP not React (should never need updating in realtime). Fixed directive title display. --- index.php | 39 +++++++++++++-------------------------- 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/index.php b/index.php index cfdb557..a68e5ce 100644 --- a/index.php +++ b/index.php @@ -338,7 +338,18 @@ $opcache = OpCacheService::init();
-
+
+ + + + + + getData('functions') as $func): ?> + + + +
Available functions
+

@@ -495,7 +506,7 @@ $opcache = OpCacheService::init(); } return ( - {dShow} + {dShow} {vShow} ); @@ -511,29 +522,6 @@ $opcache = OpCacheService::init(); } }); - var Functions = React.createClass({ - getInitialState: function() { - return { data : opstate.functions }; - }, - render: function() { - var functionNodes = this.state.data.map(function(func) { - return ( - - {func} - - ); - }); - return ( - - - - - {functionNodes} -
Available functions
- ); - } - }); - var Files = React.createClass({ getInitialState: function() { return { @@ -606,7 +594,6 @@ $opcache = OpCacheService::init(); var generalInfoObj = React.render(, document.getElementById('generalInfo')); var filesObj = React.render(, document.getElementById('filelist')); React.render(, document.getElementById('directives')); - React.render(, document.getElementById('functions'));