Файловый менеджер - Редактировать - /var/www/html/administrator/components/com_komento/themes/default/migrators/adapters/rscomments.js
Ðазад
Komento.ready(function($){ $('[data-migrate-rscomments]').on('click', function() { // Disable the button from being clicked twice $(this).attr('disabled', "true"); // Update the buttons message $(this).html('<i class="fdi fa fa-cog fa-spin"></i> <?php echo JText::_('COM_KOMENTO_MIGRATING', true);?>'); // Hide the no progress message $('[data-progress-empty]').addClass('hide'); // Ensure that the progress is always reset to empty just in case the user runs it twice. $('[data-progress-status]').html(''); // clear the stats. $('[data-progress-stat]').html(''); //show the loading icon $('[data-progress-loading]').removeClass('hide'); // try get the post from selected component var selectedComponent = $('[data-rscomments-components]').val(); Komento.ajax('admin/views/migrators/migrateComments', { "component" : "rscomments", "selectedComponent" : selectedComponent, "getPosts" : true }).done(function(postIds) { // Once get the posts, we will migrate the comment window.migrateComment(postIds); }); }); window.migrateComment = function(postIds) { var total = postIds.length; $.each(postIds, function(index, value) { // Get the values from the form var publishState = $('[data-migrate-comment-state]').val(); var migrateLikes = $('[data-migrate-comment-likes]').val(); var selectedComponent = $('[data-rscomments-components]').val(); Komento.ajax('admin/views/migrators/migrateComments', { "component" : "rscomments", "publishState": publishState, "migrateLikes": migrateLikes, "selectedComponent" : selectedComponent, "itemId": value }, { append: function(selector, message) { $(selector).append(message); } }) .done(function(results) { if (index === total - 1) { //remove loading icon. $('[data-progress-loading]').addClass('hide'); $('[data-migrate-rscomments]').removeAttr('disabled'); $('[data-migrate-rscomments]').html('<i class="fdi fa fa-check"></i> <?php echo JText::_('COM_KOMENTO_COMPLETED', true);?>'); } }); }); } });
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка