Resources/public/js/wikiTag.js
changeset 112 14653baf4f6b
parent 106 3e11915dd103
--- a/Resources/public/js/wikiTag.js	Fri Aug 24 13:16:41 2012 +0200
+++ b/Resources/public/js/wikiTag.js	Fri Jan 24 17:43:38 2014 +0100
@@ -70,7 +70,7 @@
     	autocomplete : {
 			source: function( request, response ) {
 				$.ajax({
-					url: "http://fr.wikipedia.org/w/api.php",
+					url: wikipedia_api_url,
 					dataType: "jsonp",
 					data: {
 						action: "opensearch",
@@ -189,7 +189,7 @@
     $("#wikitag_wp_search").autocomplete({
         source: function( request, response ) {
             $.ajax({
-                url: "http://fr.wikipedia.org/w/api.php",
+                url: wikipedia_api_url,
                 dataType: "jsonp",
                 data: {
                     action: "opensearch",
@@ -293,7 +293,7 @@
     $("#wikitag_wp_search_context").autocomplete({
         source: function( request, response ) {
             $.ajax({
-                url: "http://fr.wikipedia.org/w/api.php",
+                url: wikipedia_api_url,
                 dataType: "jsonp",
                 data: {
                     action: "query",