Commits

Kai Diefenbach committed 5c074ff

Exchanged extra with below-form

  • Participants
  • Parent commits bb961e7

Comments (0)

Files changed (3)

File lfc_compositor/models.py

         model = Composite
         fields = ("title", "display_title", "slug", "tags")
 
-    def extra(self, request):
+    def below_form(self, request):
         return self.instance.render(request, True)
 
 class Row(models.Model):

File lfc_compositor/static/compositor.js

         var url = $(this).attr("data");
         var value = $(this).attr("value");
         $.post(url, { "width" : value }, function(data) {
-            $("#core-data-extra").html(data);
+            $("#core-data-below-form").html(data);
         });
     });
 

File lfc_compositor/views.py

     update_columns(column.parent)
 
     html = (
-        ("#core-data-extra", composite.render(request, edit=True)),
+        ("#core-data-below-form", composite.render(request, edit=True)),
     )
 
     return HttpResponse(render_to_json(html))
     update_rows(composite)
 
     html = (
-        ("#core-data-extra", composite.render(request, edit=True)),
+        ("#core-data-below-form", composite.render(request, edit=True)),
     )
 
     return HttpResponse(render_to_json(html))
     update_widgets(widget.parent)
 
     html = (
-        ("#core-data-extra", composite.render(request, edit=True)),
+        ("#core-data-below-form", composite.render(request, edit=True)),
     )
 
     return HttpResponse(render_to_json(html))
     Column.objects.create(parent=row, position=10)
 
     html = (
-        ("#core-data-extra", composite.render(request, edit=True)),
+        ("#core-data-below-form", composite.render(request, edit=True)),
     )
 
     return HttpResponse(render_to_json(html))
     
 
     html = (
-        ("#core-data-extra", composite.render(request, edit=True)),
+        ("#core-data-below-form", composite.render(request, edit=True)),
     )
 
     return HttpResponse(render_to_json(html))
             update_widgets(column)
 
             html = (
-                ("#core-data-extra", composite.render(request, edit=True)),
+                ("#core-data-below-form", composite.render(request, edit=True)),
             )
 
             return HttpJsonResponse(html, close_overlay=True)
         if form.is_valid():
             form.save()
             composite = (
-                ["#core-data-extra", composite.render(request, edit=True)],
+                ["#core-data-below-form", composite.render(request, edit=True)],
             )
             return HttpJsonResponse(
                 content = composite, 
 
     update_columns(row)
 
-    html = (("#core-data-extra", composite.render(request, edit=True)),)
+    html = (("#core-data-below-form", composite.render(request, edit=True)),)
 
     json = render_to_json(
         html = html,
 
     update_rows(composite)
 
-    html = (("#core-data-extra", composite.render(request, edit=True)),)
+    html = (("#core-data-below-form", composite.render(request, edit=True)),)
 
     json = render_to_json(
         html = html,
         composite.check_permission(request.user, "edit")
         widget.delete()
 
-    html = (("#core-data-extra", composite.render(request, edit=True)),)
+    html = (("#core-data-below-form", composite.render(request, edit=True)),)
 
     json = render_to_json(
         html = html,