front_idill/src/mosaic/js/search.js
changeset 93 417d4b573bc8
parent 79 9eff85166868
child 97 be87091be54e
--- a/front_idill/src/mosaic/js/search.js	Wed Aug 29 11:29:14 2012 +0200
+++ b/front_idill/src/mosaic/js/search.js	Fri Sep 14 11:06:53 2012 +0200
@@ -99,6 +99,7 @@
         _this.gesturesText = data.gesturesText;
 		_this.notificationStrings = data.notificationStrings;
 		_this.helpText = data.helpText;
+		_this.creditsMetadata = data.credits_lang;
     });
 }
 
@@ -364,4 +365,21 @@
     }
     
     return '';
+}
+
+/*
+ * Extrait les données des crédits.
+*/
+Mosaic.prototype.getCredits = function()
+{
+	var _this = this;
+	
+	$.getJSON(this.config.creditsPath, function(data)
+    {
+        //On récupère les données des crédits et on les place dans un tableau avant de le retourner.
+        for(var i = 0 ; i < data.creditsData.length ; i++)
+        {
+            _this.tabCredits[i] = data.creditsData[i];
+        }
+    });
 }
\ No newline at end of file