* ajusted style of qrcode.

* ajusted css code.
This commit is contained in:
Catouse
2014-04-17 10:33:55 +08:00
parent e462375e17
commit e7ff7d7475
2 changed files with 38 additions and 69 deletions
+3 -1
View File
@@ -547,7 +547,9 @@ class commonModel extends model
public static function printQRCodeLink($color = '')
{
global $lang;
echo html::a(helper::createLink('misc', 'qrCode'), "<i class='icon-mobile-phone icon-large'></i> " . $lang->user->mobileLogin, '', "class='qrCode iframe $color' data-width='340' data-class='modal-qrcode'");
echo html::a('javascript:;', "<i class='icon-mobile-phone icon-large'></i> " . $lang->user->mobileLogin, '', "class='qrCode $color' id='qrcodeBtn'");
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>';
}
/**