mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix close button not working in ncenter_login skin for login_info widget
This commit is contained in:
parent
31fd79c71e
commit
e8ea70fdca
4 changed files with 12 additions and 6 deletions
|
|
@ -1088,7 +1088,10 @@ class ncenterliteController extends ncenterlite
|
|||
{
|
||||
return;
|
||||
}
|
||||
setcookie('_ncenterlite_hide_id', '', 0, '/');
|
||||
if(!empty($_COOKIE['_ncenterlite_hide_id']))
|
||||
{
|
||||
setcookie('_ncenterlite_hide_id', '', 0, '/');
|
||||
}
|
||||
|
||||
$oMemberModel = getModel('member');
|
||||
$memberConfig = $oMemberModel->getMemberConfig();
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ class login_info extends WidgetHandler
|
|||
function proc($args)
|
||||
{
|
||||
$args->ncenter_use = $args->ncenter_use ?? 'no';
|
||||
|
||||
|
||||
// Set a path of the template skin (values of skin, colorset settings)
|
||||
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
|
||||
Context::set('colorset', $args->colorset);
|
||||
|
|
@ -46,7 +46,10 @@ class login_info extends WidgetHandler
|
|||
{
|
||||
return;
|
||||
}
|
||||
setcookie('_ncenterlite_hide_id', '', 0, '/');
|
||||
if(!empty($_COOKIE['_ncenterlite_hide_id']))
|
||||
{
|
||||
setcookie('_ncenterlite_hide_id', '', 0, '/');
|
||||
}
|
||||
if($ncenter_config->zindex)
|
||||
{
|
||||
Context::set('ncenterlite_zindex', ' style="z-index:' . $ncenter_config->zindex . ';" ');
|
||||
|
|
@ -65,7 +68,7 @@ class login_info extends WidgetHandler
|
|||
Context::set('useProfileImage', ($member_config->profile_image == 'Y') ? true : false);
|
||||
Context::set('member_config', $member_config);
|
||||
|
||||
// Set a flag to check if the https connection is made when using SSL and create https url
|
||||
// Set a flag to check if the https connection is made when using SSL and create https url
|
||||
$ssl_mode = false;
|
||||
$useSsl = Context::getSslStatus();
|
||||
if($useSsl != 'none')
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
$(function () {
|
||||
var n = $('#nc_container');
|
||||
$('.close', n).click(function () {
|
||||
setCookie('_ncenterlite_hide_id', '{$ncenterlite_latest_notify_id}', 1);
|
||||
setCookie('_ncenterlite_hide_id', $(this).parents('#nc_container').data('latestId'), 1);
|
||||
n.hide().next('div').hide();
|
||||
return false;
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<load target="./css/ncenter.css" />
|
||||
<load target="./js/ncenter.js" type="body" />
|
||||
|
||||
<div id="nc_container" class="nc_login"|cond="$ncenterlite_page_navigation->total_count == 0" {$ncenterlite_zindex}>
|
||||
<div id="nc_container" data-latest-id="{$ncenterlite_latest_notify_id}" class="nc_login"|cond="$ncenterlite_page_navigation->total_count == 0" {$ncenterlite_zindex}>
|
||||
<ul class="nc_memu" cond="$ncenterlite_page_navigation->total_count > 0">
|
||||
<li class="nc_profile fLeft">
|
||||
<block cond="$useProfileImage">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue