Maint
[redakcja.git] / src / redakcja / static / js / wiki / view_properties.js
index dde914f..be027e0 100644 (file)
@@ -1,8 +1,5 @@
 (function($){
 
 (function($){
 
-    let w = function() {};
-    w = console.log;
-
     const elementDefs = {
         "ilustr": {
             "attributes": [
     const elementDefs = {
         "ilustr": {
             "attributes": [
                     html2text({
                         element: self.$edited[0],
                         success: function(xml) {
                     html2text({
                         element: self.$edited[0],
                         success: function(xml) {
-                            w(222)
                             let $xmlelem = $($.parseXML(xml));
                             let $xmlelem = $($.parseXML(xml));
-                            w(333, $xmlelem)
-                            w($input.data('property'), $input.val());
                             $xmlelem.contents().attr($input.data('property'), inputval);
                             $xmlelem.contents().attr($input.data('property'), inputval);
-                            w(444, $xmlelem)
                             let newxml = (new XMLSerializer()).serializeToString($xmlelem[0]);
                             let newxml = (new XMLSerializer()).serializeToString($xmlelem[0]);
-                            w(555, newxml)
                             xml2html({
                                 xml: newxml,
                             xml2html({
                                 xml: newxml,
-                                base: self.doc.getBase(),
                                 success: function(html) {
                                     let htmlElem = $(html);
                                     self.$edited.replaceWith(htmlElem);
                                 success: function(html) {
                                     let htmlElem = $(html);
                                     self.$edited.replaceWith(htmlElem);
 
                     self.doc.refreshImageGallery({
                         success: function(galleryImages) {
 
                     self.doc.refreshImageGallery({
                         success: function(galleryImages) {
-                            $.each(self.doc.galleryImages, (i, imgItem) => {
+                            $.each(galleryImages, (i, imgItem) => {
                                 let img = $("<img>").attr("src", imgItem.thumb).attr('title', imgItem.url).data('url', imgItem.url).on('click', function() {
                                     imglist.find('img').removeClass('active');
                                     $(this).addClass('active');
                                 let img = $("<img>").attr("src", imgItem.thumb).attr('title', imgItem.url).data('url', imgItem.url).on('click', function() {
                                     imglist.find('img').removeClass('active');
                                     $(this).addClass('active');