##// END OF EJS Templates
frontend: reorganize how we handle plugins
ergo -
r764:52c2b99a default
parent child Browse files
Show More
@@ -199,8 +199,14 b' var registerViewChannels;'
199 199 };
200 200
201 201 $.Topic('/plugins/__REGISTER__').subscribe(function (data) {
202 // enable chat controller
203 202 if (window.CHANNELSTREAM_SETTINGS && window.CHANNELSTREAM_SETTINGS.enabled) {
203 connCtrlr = new ConnectionController(
204 CHANNELSTREAM_SETTINGS.webapp_location,
205 CHANNELSTREAM_SETTINGS.ws_location,
206 CHANNELSTREAM_URLS
207 );
208 registerViewChannels();
209
204 210 $(document).ready(function () {
205 211 connCtrlr.run();
206 212 });
@@ -9,6 +9,3 b' pyramid_registry = get_current_registry('
9 9 {'config':config}, request=get_current_request(), package='rc_ae')|n}
10 10 % endif
11 11 % endfor
12 <script>
13 $.Topic('/plugins/__REGISTER__').prepareOrPublish({});
14 </script>
@@ -111,6 +111,7 b" c.template_context['visual']['default_re"
111 111 }
112 112 };
113 113 </script>
114 <%include file="/base/plugins_base.html"/>
114 115 <!--[if lt IE 9]>
115 116 <script language="javascript" type="text/javascript" src="${h.asset('js/excanvas.min.js')}"></script>
116 117 <![endif]-->
@@ -144,8 +145,9 b" c.template_context['visual']['default_re"
144 145
145 146 <%def name="head_extra()"></%def>
146 147 ${self.head_extra()}
147 <%include file="/base/plugins_base.html"/>
148
148 <script>
149 $.Topic('/plugins/__REGISTER__').prepareOrPublish({});
150 </script>
149 151 ## extra stuff
150 152 %if c.pre_code:
151 153 ${c.pre_code|n}
@@ -13,12 +13,4 b''
13 13 'webapp_location': ''};
14 14 %endif
15 15
16 if (CHANNELSTREAM_SETTINGS.enabled) {
17 connCtrlr = new ConnectionController(
18 CHANNELSTREAM_SETTINGS.webapp_location,
19 CHANNELSTREAM_SETTINGS.ws_location,
20 CHANNELSTREAM_URLS
21 );
22 registerViewChannels();
23 }
24 16 </script>
General Comments 0
You need to be logged in to leave comments. Login now