Commits

Boris Nagaev committed ffb3dea

update jquery, use in Countdown, MapViewer, SWFStore

New Wt version do not provide $.ajax() it built-in jquery

Comments (0)

Files changed (4)

+2014-03-10:
+    * update jquery version used and use it explicitly
+
 2014-03-09:
     * Gather gathers local IP using WebRTC
 

src/Countdown.cpp

     implementJavaScript(&Countdown::lap, lap_js());
     implementJavaScript(&Countdown::resume, resume_js());
     if (load_javascript) {
-        wApp->require("https://ajax.googleapis.com/ajax/libs/"
-                      "jquery/1.7.2/jquery.min.js", "jQuery");
+        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");
     }

src/MapViewer.cpp

 {
     wApp->require("http://openlayers.org/api/OpenLayers.js",
                   "OpenLayers");
-    wApp->require("https://ajax.googleapis.com/ajax/libs/"
-                  "jquery/1.7.2/jquery.min.js", "jQuery");
+    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;");
                       "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) + ");"