title: Context menu right click -- Jquery
body: <p>Iam using Jquery Context menu in these way..,</p>
  
  <pre><code>function ApplyContextMenu() {
  $.contextMenu({
      selector: '.pnlAccordion h3',
      callback: function (key, options) {
          ContextMenuAction(key, options, $(this));
      },
      items: {
          "Add": { name: "Add Port", icon: "add" },
          "Edit": { name: "Edit Port", icon: "edit" },
      }
  
  });
  }
    function ContextMenuAction(key, options, $Port) {
  
             $(".dialogADD").dialog('open');
       if (key == "Add") {   
      $(".dialogADD").dialog({
          height: 238,
          width: 465,
          resizable: false,
          title: "Add Ports"
  
      });
  
         $(".imgbtnUpdateContext").click(function () {
  
             //Ajax Call Does action
              success: function (JSONData) {
                      try {
                           $(".dialogADD").dialog('close');
                          }
       }
           });
  </code></pre>
  
  <p>Here after many trials on this hide() and show() of dialog, i finally found that problem is not for hide() and show() of dialog, but its on Context Menu right click.</p>
  
  <p><strong>PROBLEM:</strong></p>
  
  <p>When i hit right click as "ADD" for the first time its inserting one record
  when i hit it second time its inserting two times the same record, third time 3 times the same record.</p>
  
  <p>Here actually for the second time even if i do not hit update button its entering into it, </p>
  
  <p>problem is on the right click, Its counting number of clicks on the right click and entering into Update button,
  How should i restrict it into entering into Update click for the second time / third time</p>