|
|
|
@ -12,8 +12,9 @@ define(function() {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
socket.on('admin.plugins.toggle', function(status) {
|
|
|
|
|
pluginTgl = document.querySelector('.plugins li[data-plugin-id="' + status.id + '"] button');
|
|
|
|
|
pluginTgl.innerHTML = '<i class="fa fa-power-off"></i> ' + (status.active ? 'Dea' : 'A') + 'ctivate';
|
|
|
|
|
pluginTgl = $('.plugins li[data-plugin-id="' + status.id + '"] button');
|
|
|
|
|
pluginTgl.html('<i class="fa fa-power-off"></i> ' + (status.active ? 'Dea' : 'A') + 'ctivate');
|
|
|
|
|
pluginTgl.toggleClass('btn-warning', status.active).toggleClass('btn-success', !status.active);
|
|
|
|
|
|
|
|
|
|
app.alert({
|
|
|
|
|
alert_id: 'plugin_toggled_' + status.id,
|
|
|
|
|