Move sp_auth_credentials setting from Reference Universe widget to application. Part...
authorMike Taylor <mike@indexdata.com>
Fri, 9 Jan 2015 10:38:09 +0000 (10:38 +0000)
committerMike Taylor <mike@indexdata.com>
Fri, 9 Jan 2015 10:38:09 +0000 (10:38 +0000)
examples/htdocs/mkws-widget-ru.html
examples/htdocs/mkws-widget-ru.js

index 482c513..2767ef9 100644 (file)
@@ -1,3 +1,4 @@
+<script>var mkws_config = { sp_auth_credentials: "paratext/paratext_mkc" }</script>
 <html>
   <div style="max-width: 18em; margin: 1.5em 1.5em">
     <script src="//mkws.indexdata.com/mkws-complete.js"></script>
index b2ee812..afe0347 100644 (file)
@@ -1,5 +1,3 @@
-var mkws_config = { sp_auth_credentials: "paratext/paratext_mkc" };
-
 mkws.registerWidgetType('reference-universe', function() {
   if (!this.config.perpage) this.config.perpage = 5;
   if (!this.config.sort) this.config.sort = "position";