Version 2.1.0
This commit is contained in:
@@ -1 +1,2 @@
|
||||
{% INCLUDEJS '@dmzx_mchat/javascript/mchat.collapse.js' %}
|
||||
{% INCLUDECSS '@dmzx_mchat/mchat.arty.css' %}
|
||||
{% INCLUDEJS '@dmzx_mchat/javascript/mchat.collapse.arty.js' %}
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
{% INCLUDECSS '@dmzx_mchat/mchat.css' %}
|
||||
{% INCLUDECSS '@dmzx_mchat/mchat_custom.css' %}
|
||||
@@ -1,49 +0,0 @@
|
||||
/**
|
||||
*
|
||||
* @package phpBB Extension - mChat
|
||||
* @copyright (c) 2017 kasimi - https://kasimi.net
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
*
|
||||
*/
|
||||
|
||||
jQuery(function($) {
|
||||
|
||||
"use strict";
|
||||
|
||||
// Most code below copied from elegance/template/forum_fn.js for phpBB 3.2.1
|
||||
|
||||
var $this = $('.mchat-wrapper li.header'),
|
||||
forum = $this.parent().next('#mchat-body'),
|
||||
id = 'mchat',
|
||||
toggled = false,
|
||||
toggle;
|
||||
|
||||
// Add toggle code
|
||||
$this.append('<a class="forum-toggle" href="#"></a>');
|
||||
toggle = $this.find('.forum-toggle');
|
||||
toggle.click(function(event) {
|
||||
event.preventDefault();
|
||||
$(mChat).trigger('mchat_collapse_toggle_before', [{collapsed: !toggle}]);
|
||||
if (toggled) {
|
||||
forum.stop(true, true).slideDown(200);
|
||||
toggled = false;
|
||||
toggle.removeClass('toggled');
|
||||
phpbb.deleteCookie('toggled-' + id, styleConfig.cookieConfig);
|
||||
$(mChat).trigger('mchat_collapse_toggle_after', [{collapsed: toggle}]);
|
||||
return;
|
||||
}
|
||||
forum.stop(true, true).slideUp(200);
|
||||
toggled = true;
|
||||
toggle.addClass('toggled');
|
||||
phpbb.setCookie('toggled-' + id, '1', styleConfig.cookieConfig);
|
||||
$(mChat).trigger('mchat_collapse_toggle_after', [{collapsed: toggle}]);
|
||||
});
|
||||
|
||||
// Check default state
|
||||
if (phpbb.getCookie('toggled-' + id, styleConfig.cookieConfig) == '1') {
|
||||
forum.stop(true, true).slideUp(0);
|
||||
toggled = true;
|
||||
toggle.addClass('toggled');
|
||||
}
|
||||
|
||||
});
|
||||
@@ -1 +0,0 @@
|
||||
<li class="tab mchat" data-select-match="mchat" data-responsive-class="tab small-icon icon-mchat"><a class="nav-link" href="{{ U_MCHAT }}" title="{{ MCHAT_TITLE_HINT }}" class="mchat-nav-link mchat-nav-link-title" role="menuitem">{{ MCHAT_TITLE }}</a></li>
|
||||
Reference in New Issue
Block a user