Yclas Update 3.5.0 Issue on Dropzone

User avatar
Delo Ramci
Posts: 17
Joined: Thu Jan 26, 2017 12:17 pm

Yclas Update 3.5.0 Issue on Dropzone

Mon Aug 27, 2018 2:12 pm

Yclas have currently have an issue on dropzone causing for advertiser or user unable to publish ads with image. If you published with images its often to be like - you may think ah.. my ads is take too long or not publish yet, but when you refresh your page you'll noticed thaT it was actually published.

It's not yet fix, currently. No free support for this issues. I found some fixed but not sure if this will help!

The issues i found is from here:
if ($('textarea[name=description]:not(.disable-bbcode)').length) {
$('textarea[name=description]:not(.disable-bbcode)').sceditor('instance').updateOriginal();
}
and solution is to add this to new.js next to:

Code: Select all

                break;
            case 'textarea':
                $template.find('div[data-input]').replaceWith($('<textarea/>').attr({   'id'          : idx,
                                                                                        'name'        : idx,
                                                                                        'class'       : 'form-control',
                                                                                        'placeholder' : customfield.label,
                                                                                        'rows'        : 10,
                                                                                        'cols'        : 50,
                                                                                        'data-type'   : customfield.type,
                                                                                        'data-toggle' : 'tooltip',
                                                                                        'title'       : customfield.tooltip,
                                                                                        'required'    : customfield.required,
                                                                                    }).append($('#custom-fields').data('customfield-values')[idx]));
// Add this code below                                                                                    
                break;
            case 'textarea_bbcode':
                $template.find('div[data-input]').replaceWith($('<textarea/>').attr({   'id'          : idx,
                                                                                        'name'        : idx,
                                                                                        'class'       : 'form-control',
                                                                                        'placeholder' : customfield.label,
                                                                                        'rows'        : 10,
                                                                                        'cols'        : 50,
                                                                                        'data-type'   : customfield.type,
                                                                                        'data-toggle' : 'tooltip',
                                                                                        'title'       : customfield.tooltip,
                                                                                        'required'    : customfield.required,
                                                                                    }).append($('#custom-fields').data('customfield-values')[idx]));

I still have an issues so im still searching for other problem. Let me know if you guys can add something.


Return to “Open-Classified Theme”

Links

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests
Registered users: No registered users
Most users ever online was 19 on Mon May 20, 2019 11:06 pm
Total posts 527
Total topics 406
Total members 73
Our newest member Kelly
No birthdays today