burak277 / js-hotkeys

Automatically exported from code.google.com/p/js-hotkeys
0 stars 0 forks source link

repetitive execution click #99

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. multi-buttons bind click event,but, repetitive execution click. e.g.:
$(document).bind("keypress", "Shift+f",function(){$("#reloadBtn").click();})
       .bind("keypress", "f4",function(){$("#closeBtn").click();})
       .bind("keypress", "Shift+p",function(){$("#printSOBtn").click();})
       .bind("keypress", "return",function(){$("#lockbookingBtn").click();})
       .bind("keypress", "Ctrl+return",function(){$("#sumbitBLBtn").click();})
       .bind("keypress", "Shift+c",function(){$("#Fee_C").click();})
       .bind("keypress", "Shift+s",function(){$("#Fee_S").click();})
       .bind("keypress", "Shift+o",function(){$("#Fee_O").click();})
       .bind("keypress", "Shift+d",function(){$("#Fee_D").click();});
What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
 ver:0.7.9

Please provide any additional information below.

Original issue reported on code.google.com by qia...@gmail.com on 21 Apr 2011 at 10:45

GoogleCodeExporter commented 8 years ago
$("#reloadBtn").click(
        function()
        {
            //alert("dddd");
            window.location.reload();
        }
    );
    //关闭页面
    $("#closeBtn").click(
        function()
        {
            window.close();
        }
    );
    //提交订舱
    $("#lockbookingBtn").click(
        function()
        {
            lockForm();
        }
    );
    //打印SO  
    $("#printSOBtn").click(
        function()
        {
            window.open("Booking_SelectView.html?webNo="+webNo,"","width=600,height=500,toolbar=1,,menubar=1,location=1,scrollbars=1,resizable=1");
        }
    );
    //提交补料
    $("#sumbitBLBtn").click(
        function()
        {
            window.open("Booking_FillBL.html?webNo="+webNo,"","toolbar=0,,menubar=0,location=0,scrollbars=1,resizable=1");
        }
    );
    //查看费用
    $("#Fee_C").css("color","red");//初始化页面的时候的样式
    $("#Fee_C").click(function()
    {
        getFee("C");
        $("#Fee_C").css("color","red");
        $("#Fee_S").css("color","#FFFFFF");
        $("#Fee_O").css("color","#FFFFFF");
    });

    $("#Fee_S").click(function()
    {
        getFee("S");
        $("#Fee_S").css("color","red");
        $("#Fee_C").css("color","#FFFFFF");
        $("#Fee_O").css("color","#FFFFFF");
    });
    $("#Fee_O").click(function()
    {
        getFee("O");
        $("#Fee_O").css("color","red");
        $("#Fee_C").css("color","#FFFFFF");
        $("#Fee_S").css("color","#FFFFFF");
    });
    $("#Fee_D").click(function()
    {
        alert("The Function is not opened.");
        //window.open("Booking_Fee.html?webNo="+webNo,"","toolbar=0,,menubar=0,location=0,scrollbars=1,resizable=1");
    });

if i press "shift+p",open mult-windows page...

Original comment by qia...@gmail.com on 21 Apr 2011 at 10:47