部分用户行为修改

This commit is contained in:
iFish 2014-09-09 11:17:58 +08:00
parent 9309930125
commit 431d5b8283
2 changed files with 20 additions and 19 deletions

View File

@ -187,7 +187,7 @@
initEditor();
editor.find(".chat-editor-container").keyup(function (e) {
if (e.keyCode === 13 && e.ctrlKey) {
if (e.keyCode === 13) {
sendBtn.click();
}
});

View File

@ -140,22 +140,6 @@
exports.showNonExtensionInstall = function () {
var isLb = navigator.userAgent.indexOf("LBBROWSER") != -1;
var btns = [
{
text: "安装猎豹浏览器",
type: "primary",
callback: function() {
window.open("http://dl.liebao.cn/coop/KSBrowser_12306.exe");
return false;
}
},
{
text: "安装扩展",
type: "primary",
callback: function() {
window.open("http://12306.fishlee.net/crx");
return false;
}
},
{
text: "刷新",
type: "default",
@ -165,8 +149,25 @@
}
}
];
if (isLb)
btns.unshift(0);
if (isLb) {
btns.unshift({
text: "安装猎豹浏览器",
type: "primary",
callback: function() {
window.open("http://dl.liebao.cn/coop/KSBrowser_12306.exe");
return false;
}
});
} else {
btns.unshift({
text: "安装扩展",
type: "primary",
callback: function() {
window.open("http://12306.fishlee.net/crx");
return false;
}
});
}
$.showModalDialog("您需要安装" + (isLb ? "" : "<u>猎豹浏览器</u>和") + "<u>最新版12306订票助手扩展</u>才可以使用极速版订票。请安装后刷新此页面 :-)", {
image: "/images/cat.png",