* ajusted style of qrcode btn in footer and login form.

This commit is contained in:
Catouse
2014-04-22 17:45:34 +08:00
parent 8188be9ee7
commit 9598eec787
3 changed files with 12 additions and 4 deletions
+2 -2
View File
@@ -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>';
}
+9 -1
View File
@@ -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');
});
})
+1 -1
View File
@@ -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. */