Pull requests.
[redakcja.git] / project / templates / explorer / panels / dceditor.html
1 <div class="panel-dceditor">
2     <form action="{% url file_dc fileid %}" 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                 self._endload();       
19         },
20         saveInfo: function(saveInfo) {
21                 var myInfo = {
22                         url: "{% url file_dc fileid %}",
23                         postData: $('form', this.contentDiv).serialize() 
24                 };
25                 $.extend(saveInfo, myInfo);
26         }
27 };
28 </script>