Commits

Boris Nagaev committed b497bbe

remove jquery from other classes

  • Participants
  • Parent commits 51cdb98

Comments (0)

Files changed (4)

File src/Countdown.cpp

     implementJavaScript(&Countdown::lap, lap_js());
     implementJavaScript(&Countdown::resume, resume_js());
     if (load_javascript) {
-        wApp->require("http://code.jquery.com/jquery-1.11.0.min.js");
-        wApp->require("http://code.jquery.com/jquery-migrate-1.2.1.min.js");
         wApp->require("http://cdnjs.cloudflare.com/ajax/libs/jquery-countdown/"
                       "1.6.1/jquery.countdown.min.js", "jQuery.countdown");
     }

File src/MapViewer.cpp

 {
     wApp->require("http://openlayers.org/api/OpenLayers.js",
                   "OpenLayers");
-    wApp->require("http://code.jquery.com/jquery-1.11.0.min.js");
-    wApp->require("http://code.jquery.com/jquery-migrate-1.2.1.min.js");
     setImplementation(new Wt::WContainerWidget());
     get_impl()->setStyleClass("impl_cw");
     wApp->styleSheet().addRule(".impl_cw", "position:relative;");

File src/MapViewer.hpp

 It is intended to facilitate an introduction of
 a dynamic map in any web page.
 
+\warning You must load jQuery with ajax method.
+    JQuery shipped with Wt does not have this method.
+
 Main features:
  - It uses free content (<a href="http://openstreetmap.org/">OpenStreetMap</a>).
    Ajax version is based on <a href="http://openlayers.org">OpenLayers</a> API.

File src/SWFStore.cpp

                       "2.9.0/build/swfstore/swfstore-min.js",
                       "YAHOO.util.SWFStore");
     }
-    wApp->require("http://code.jquery.com/jquery-1.11.0.min.js");
-    wApp->require("http://code.jquery.com/jquery-migrate-1.2.1.min.js");
     doJavaScript("var swfstore = new YAHOO.util.SWFStore('" + id() + "', " +
                  bool_to_string(share_data) + "," +
                  bool_to_string(use_compression) + ");"