No, this isn't needed :-)
[redakcja.git] / project / templates / explorer / panels / dceditor.html
1 <div class="panel-dceditor">
2     <form action="{{ request.get_full_path }}" method="post" accept-charset="utf-8">
3         {{ form.as_p }}
4 <!--        <p><input type="submit" value="Continue &rarr;"/></p> -->
5     </form>
6 </div>
7 <script type="text/javascript" charset="utf-8">
8 panel_hooks = { 
9
10         load: function() {
11                 var self = this;
12                 self.form = $('form', self.contentDiv);
13                 $("input[type='text'], textarea", self.form).each(function() {
14                         $(this).change(function(event) {
15                                 self.contentDiv.trigger('panel:contentChanged', self);
16                         });
17                 });
18         },
19         saveInfo: function(hn, saveInfo) {
20                 var myInfo = {
21                         url: "{% url file_dc fpath %}", 
22                         postData: $('form', this.contentDiv).serialize() 
23                 };
24                 $.extend(saveInfo, myInfo);
25         }
26 };
27 </script>