Modified template for CSRF/Creator fields
authorveltr
Wed, 28 Nov 2012 15:46:05 +0100
changeset 72 aa85db611fb7
parent 71 4360509f98e4
child 73 475e5fb0ea2b
Modified template for CSRF/Creator fields
src/hashcut/templates/bpi_mashup_edit.html
--- a/src/hashcut/templates/bpi_mashup_edit.html	Wed Nov 28 15:43:44 2012 +0100
+++ b/src/hashcut/templates/bpi_mashup_edit.html	Wed Nov 28 15:46:05 2012 +0100
@@ -265,8 +265,7 @@
         project: "{% url api_dispatch_list api_name='1.0' resource_name='projects' %}",
         segment: "{% url api_dispatch_list api_name='1.0' resource_name='segments' %}",
         ldt: "{% url projectjson_id id='' %}",
-        hashcut_page: "{% url mashup_hashcut branding=branding ldt_id='' %}",
-        csrf_token: "{{csrf_token}}"
+        hashcut_page: "{% url mashup_hashcut branding=branding ldt_id='' %}"
     };
     $(function() {
    	    IriSP.video_url_transform = function(oldurl) {
@@ -276,9 +275,9 @@
    		    return newurl;
    		};
         var hashcut = IriSP.editor({
-            //url: "data/bpidata.json",
-            //url: "data/moon-local.json",
             filter: {
+                creator: "{{creator}}",
+                csrf_token: "{{csrf_token}}",
                 tags__icontains: "BPI"
             }
        });