.PopupWindow -> .WmkwsPopup
authorWolfram Schneider <wosch@indexdata.dk>
Thu, 10 Jul 2014 11:27:12 +0000 (11:27 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Thu, 10 Jul 2014 11:27:12 +0000 (11:27 +0000)
examples/htdocs/popup.html
src/mkws-popup.js

index 4de95bd..eea60ca 100644 (file)
@@ -41,7 +41,7 @@
     <h3>MKWS widgets in a popup window</h3>
 
     <div class="mkwsSearch"></div>
-    <div class="PopupWindow mkwsTeam_search" popup_width="1024" popup_height="650" popup_modal="0" popup_autoOpen="0" popup_button="input.mkwsButton">
+    <div class="WmkwsPopup mkwsTeam_search" popup_width="1024" popup_height="650" popup_modal="0" popup_autoOpen="0" popup_button="input.mkwsButton">
       <div class="mkwsSwitch"></div>
       <div class="mkwsLang"></div>
       <div class="mkwsResults"></div>
       <div class="mkwsStat"></div>
     </div>
 
-    <div class="mkwsCredo PopupWindow mkwsTeam_credo" popup_width="1024" popup_height="800" popup_autoOpen="1" autosearch="!param!q">
+    <div class="mkwsCredo WmkwsPopup mkwsTeam_credo" popup_width="1024" popup_height="800" popup_autoOpen="1" autosearch="!param!q">
       mkwsCredo result will appear here
     </div>
 
-    <div class="mkwsReference PopupWindow mkwsTeam_credo" popup_width="700" popup_height="600" popup_autoOpen="1" sentences="1" autosearch="!param!q">
+    <div class="mkwsReference WmkwsPopup mkwsTeam_credo" popup_width="700" popup_height="600" popup_autoOpen="1" sentences="1" autosearch="!param!q">
       mkwsReference result will appear here
     </div>
 
   </body>
 </html>
+
index 275d541..ca38e5d 100644 (file)
@@ -4,7 +4,7 @@
 
 // "use strict";
 $(document).ready(function () {
-    // mkws.registerWidgetType('PopupWindow', function() {
+// mkws.registerWidgetType('WmkwsPopup', function() {
     var $ = mkws.$;
     var debug = mkws.log;
     debug("init popup window");
@@ -14,7 +14,7 @@ $(document).ready(function () {
         return;
     }
 
-    var popup_window = $(".PopupWindow");
+    var popup_window = $(".WmkwsPopup");
     if (!popup_window) {
         debug("no popup found, skip");
         return;