change widget name to "Wimp"
authorWolfram Schneider <wosch@indexdata.dk>
Tue, 9 Sep 2014 14:51:28 +0000 (14:51 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Tue, 9 Sep 2014 14:51:28 +0000 (14:51 +0000)
examples/htdocs/mkws-widget-wimp.css
examples/htdocs/mkws-widget-wimp.html
examples/htdocs/mkws-widget-wimp.js

index 0d5c684..2212e25 100644 (file)
@@ -1,4 +1,4 @@
-.mkwsReferenceUniverse {
+.mkwsWimp {
   font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
   background: #FCFBFA;
   padding: 0.5em 1em 0.25em;
index b8fa131..b203ef2 100644 (file)
@@ -3,6 +3,6 @@
     <script src="//mkws.indexdata.com/mkws-complete.js"></script>
     <script src="mkws-widget-wimp.js"></script>
     <link rel="stylesheet" type="text/css" href="mkws-widget-wimp.css" />
-    <div class="mkwsReferenceUniverse" autosearch="!param!q"></div>
+    <div class="mkwsWimp" autosearch="!param!q"></div>
   </div>
 </html>
index 55b4488..6f0dd76 100644 (file)
@@ -2,10 +2,10 @@ var mkws_config = {
    service_proxy_auth: "http://mkws.indexdata.com/service-proxy/?command=auth&action=login&username=paratext&password=paratext_mkc"
 };
 
-mkws.registerWidgetType('ReferenceUniverse', function() {
+mkws.registerWidgetType('Wimp', function() {
   if (!this.config.perpage) this.config.perpage = 5;
   if (!this.config.sort) this.config.sort = "position";
-  this.team.registerTemplate('ReferenceUniverse', '\
+  this.team.registerTemplate('Wimp', '\
 <h2>Results from Reference Universe</h2>\
 <ul>\
 {{#each hits}}\
@@ -27,7 +27,7 @@ mkws.registerWidgetType('ReferenceUniverse', function() {
 ');
 
   var that = this;
-  var template = that.team.loadTemplate(that.config.template || "ReferenceUniverse");
+  var template = that.team.loadTemplate(that.config.template || "Wimp");
   this.team.queue("records").subscribe(function(data) {
     that.node.html(template(data));
   });