* ajusted style of qrcode btn in footer and login form.
This commit is contained in:
@@ -248,7 +248,7 @@ class commonModel extends model
|
||||
echo html::a(helper::createLink('user', 'logout'), $lang->logout);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if($app->company->website) echo html::a($app->company->website, $lang->company->website, '_blank');
|
||||
if($app->company->backyard) echo html::a($app->company->backyard, $lang->company->backyard, '_blank');
|
||||
|
||||
@@ -557,7 +557,7 @@ class commonModel extends model
|
||||
public static function printQRCodeLink($color = '')
|
||||
{
|
||||
global $lang;
|
||||
echo html::a('javascript:;', "<i class='icon-mobile-phone icon-large'></i> " . $lang->user->mobileLogin, '', "class='qrCode $color' id='qrcodeBtn'");
|
||||
echo html::a('javascript:;', "<i class='icon-qrcode'></i>", '', "class='qrCode $color' id='qrcodeBtn' title='{$lang->user->mobileLogin}'");
|
||||
echo "<div class='popover top' id='qrcodePopover'><div class='arrow'></div><h3 class='popover-title'>{$lang->user->mobileLogin}</h3><div class='popover-content'><img src=\"" . helper::createLink('misc', 'qrCode') . "\"></div></div>";
|
||||
echo '<script>$(function(){$("#qrcodeBtn").click(function(){$("#qrcodePopover").toggleClass("show");}); $("#wrap").click(function(){$("#qrcodePopover").removeClass("show");});});</script>';
|
||||
}
|
||||
|
||||
@@ -8,5 +8,13 @@ $(document).ready(function()
|
||||
selectLang($(this).data('value'));
|
||||
});
|
||||
|
||||
$('#mobile').popover({html: true, container: 'body'});
|
||||
$('#mobile').popover({html: true, container: 'body'}).click(function(event)
|
||||
{
|
||||
event.stopPropagation();
|
||||
});
|
||||
|
||||
$(document).click(function()
|
||||
{
|
||||
$('#mobile').popover('hide');
|
||||
});
|
||||
})
|
||||
|
||||
@@ -374,7 +374,7 @@ body {font-size: 12px; color:#141414;padding-bottom: 40px;}
|
||||
#crumbs .icon-angle-right{margin-right: 6px;}
|
||||
#footer #poweredby {float: right; margin-right: 20px;}
|
||||
#qrcodePopover.show {display: block; position: fixed; right: 5px; bottom: 40px; left: inherit; top: inherit;}
|
||||
#qrcodePopover.popover.top .arrow {left: 85%}
|
||||
#qrcodePopover.popover.top .arrow {left: inherit; right: 10px}
|
||||
|
||||
|
||||
/* Feature bar. */
|
||||
|
||||
Reference in New Issue
Block a user