added conf for annotationListWidget. popcorn-port
authorhamidouk
Wed, 18 Jan 2012 17:21:00 +0100
branchpopcorn-port
changeset 672 9013f6382f8c
parent 671 468c7413e828
child 673 18318dd611c2
added conf for annotationListWidget.
src/js/site.js
--- a/src/js/site.js	Wed Jan 18 16:35:18 2012 +0100
+++ b/src/js/site.js	Wed Jan 18 17:21:00 2012 +0100
@@ -2,6 +2,7 @@
 
 IriSP.libdir = "/mdp/src/js/libs/";
 IriSP.jwplayer_swf_path = "/mdp/test/libs/player.swf";
+IriSP.platform_url = "http://localhost/pf";
 
 IriSP.lib = { 
 		jQuery : "http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js",
@@ -55,11 +56,18 @@
   "Main" : {
       autoplay: true
   }
-  
+  "AnnotationsListWidget" : {
+      ajax_mode: true, /* use ajax to get information about the annotations.
+                         if set to false, only search in the annotations for the
+                         current project. */
+      ajax_url: IriSP.platform_url + "ldtplatform/api/ldt/segments/" /* partial
+                                                                        url of 
+                                                                        where to
+                                                                        get the 
+                                                                        ajax */
+  },  
 };
 
-IriSP.platform_url = "http://localhost/pf";
-
 IriSP.paths = {
 //  "imgs": "/tweetlive/res/metadataplayer/src/css/imgs"
   "imgs": "/mdp/src/css/imgs"