Code bug in Luna 2.1-alpha.1

Avatar

By biocodes 9 January 2017 10:33

Member · 2 comments

Hi Yannick,

Please find the code bug in Luna 2.1-alpha.1 related to image tag.

file 1 : draw_functions.php
file 2 : thread.php

Code Bug : Look following code in above files, In else condition img tag was not properly closed. This will cause misunderstanding for parser.php

function AddTag(type, tag) {
    ......
       if (tag == 'img') {
           var url = $('#img_url').val();
           var text = $('#img_text').val();

           if ( text == '' ) {
               Field.value = before_txt + '[img]' + url + '[/img]' + after_txt;
           } else {
               Field.value = before_txt + '[img=' + text + ']' + url + '[img]' + after_txt;
           }

           $('#img-form').modal('hide');
           $('#img_text').val();
           $('#img_url').val();
       }
    ......
}

Last edited by biocodes (9 January 2017 10:50)

Avatar

By charliejulien 25 November 2017 10:03

Member · 1 comments

If you want to send a bug fix for the version 2.1, send it to the branch release-2.1; If you want to send a new feature, use the branch development.Its my just opinion only.I am a writer at essay writing service,please take reference from our service.