X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/654e7cf77f7241bfc866a4879829367d39179577..5dd35dc51c94ec63a25ad17dca4259e7e80e2bc0:/project/templates/explorer/panels/dceditor.html

diff --git a/project/templates/explorer/panels/dceditor.html b/project/templates/explorer/panels/dceditor.html
index 96c2c47e..a82f796c 100644
--- a/project/templates/explorer/panels/dceditor.html
+++ b/project/templates/explorer/panels/dceditor.html
@@ -1,9 +1,27 @@
 <div class="panel-dceditor">
     <form action="{{ request.get_full_path }}" method="post" accept-charset="utf-8">
-        {{ form }}
-        <p><input type="submit" value="Continue &rarr;"/></p>
+        {{ form.as_p }}
+<!--        <p><input type="submit" value="Continue &rarr;"/></p> -->
     </form>
 </div>
 <script type="text/javascript" charset="utf-8">
-panel_hooks = { };
+panel_hooks = { 
+
+	load: function() {
+		var self = this;
+		self.form = $('form', self.contentDiv);
+		$("input[type='text'], textarea", self.form).each(function() {
+			$(this).change(function(event) {
+				self.contentDiv.trigger('panel:contentChanged', self);
+			});
+		});
+	},
+	saveInfo: function(saveInfo) {
+		var myInfo = {
+			url: "{% url file_dc fpath %}", 
+			postData: $('form', this.contentDiv).serialize() 
+		};
+		$.extend(saveInfo, myInfo);
+	}
+};
 </script>