我正在使用Twitter Bootstrap创建一个模态窗口.默认行为是,如果单击模态区域外,模态将自动关闭.我想禁用它 - 即在模态外部单击时不关闭模态窗口.
有人可以共享jQuery代码来做到这一点吗?
我正在尝试整合Facebook的"赞"按钮,其中"赞"动作与回调函数集成在一起.它似乎有效,除了"赞"活动没有出现在Facebook上.
我正在使用自己的Facebook帐户对此进行测试,但在我的Feed,个人资料页面或活动日志中看不到该活动.
这是我的网址:http: //flevy.com/powerpoint-plugin-test
这是我的代码:
<script src=\"http://connect.facebook.net/en_US/all.js\" type=\"text/javascript\"></script>
<script>
window.fbAsyncInit = function() {
// init the FB JS SDK
FB.init({
appId : 'xxxxxx', // App ID from the App Dashboard
status : true, // check the login status upon init?
cookie : true, // set sessions cookies to allow your server to access the session?
xfbml : true // parse XFBML tags on this page?
});
FB.Canvas.setAutoResize();
};
</script>
<div class=\"fb-like\" data-href=\"$share_url\" data-send=\"false\" data-layout=\"box_count\" data-width=\"50\" data-show-faces=\"false\"></div …Run Code Online (Sandbox Code Playgroud)