asikart / remoteimage

Asikart RemoteImage helps you manage Joomla CMS image and media files on local and remote FTP host.
http://ext.asikart.com/extensions/asikart-remoteimage.html
10 stars 11 forks source link

With Joomla 3.10.0 the insert button is not working. #102

Open DonPedro34 opened 3 years ago

DonPedro34 commented 3 years ago

Since Joomla 3.10.0 remoteimage has at least one issue.

When clicking on select image in the second tab of the content editor, remoteimage opens up.

When selecting an image and clicking Insert nothing happens. No error is shown in the browser console, nothing in the network tab.

Chrome browser.

Otherwise remoteimage is working for uploading and scaling images.

Cheers Don

ammannit commented 3 years ago

``I had the same problem and i changed follow lines in /administrator/components/com_remoteimage/view/manager/tmpl/default.php at the line 243-249:

Old:

<button id="rm-insert-button" class="btn btn-primary" onclick="<?php echo $fieldid ? 'insertFormField();' : 'insertImageToParent();'; ?>">
<?php echo JText::_('COM_REMOTEIMAGE_INSERT_IMAGES'); ?>

</button><button id="rm-cancel-button" class="btn" onclick="window.parent.SqueezeBox.close();">
<?php echo JText::_('JLIB_HTML_BEHAVIOR_CLOSE'); ?>
</button>

to:

<button class="btn btn-success button-save-selected" type="button" onclick="<?php echo $fieldid ? 'insertFormField();' : 'insertImageToParent();'; ?>" data-dismiss="modal"><?php echo JText::_('Einfügen'); ?></button>

<button class="btn button-cancel" type="button" onclick="window.parent.jQuery('.modal.in').modal('hide');" data-dismiss="modal"><?php echo JText::_('Schliessen'); ?></button>