Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 12th, 2012  |  syntax: None  |  size: 3.69 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Sticky jquery-ui dialog does not let mouse pointer go
  2. $("#Applon").dialog({
  3.     autoOpen: false,
  4.     height: 370,
  5.     width: 710,
  6.     modal: true,
  7.     buttons: {
  8.         //'Create an account': function() { },
  9.         Close: function() {
  10.             $(this).dialog('close');
  11.             //$('input:visible:enabled:first').focus();
  12.         }
  13.     },
  14.     close: function() {
  15.     }
  16. });
  17.        
  18. jQuery('#jgrid2').jqGrid({
  19.     autowidth: true,
  20.     altRows: true,
  21.     altclass: 'grdAltRwClr',
  22.     datatype: 'local',
  23.     forceFit: true,
  24.     gridview: true,
  25.     mtype: 'post',
  26.     height: 190,
  27.     //width: 350,
  28.     rowNum: 0,
  29.     postData: { p_hdrid: function() { return $('#p_hdrid').val(); } },
  30.     url: window.rootPath + 'Invoice/JGridDtlData',
  31.     beforeSelectRow: function() { return false; },
  32.     gridComplete: function() {
  33.         GridComplete2();
  34.     },
  35.     colModel: [
  36.         { name: 'act', label: 'View', resizable: false, search: false, sortable: false, title: false, width: 8, index: 'act' }
  37.         , { name: 'p_slabid', label: 'Slab ID', width: 15, index: 'p_slabid' }
  38.         , { name: 'p_fslab', label: 'From', width: 15, index: 'p_fslab', sortable: false }
  39.         , { name: 'p_tslab', label: 'Upto', width: 15, index: 'p_tslab', sortable: false }
  40.         , { name: 'p_amt', label: 'Amount', width: 15, index: 'p_amt', sortable: false }
  41.  
  42.          ]
  43. });
  44.        
  45. <div id="Applon" title="Edit Slab Details" style="border-style: 1px; width: 680px; height:370px; background-color: #00CC99; z-index: 999; display: block; padding-left: 10px;">
  46.     <div class="content">
  47.         <table cellpadding="0" cellspacing="0">
  48.             <tr>
  49.                 <td>
  50.                 <form action="" id="frmDtl">
  51.                     <table cellpadding="0" cellspacing="0">
  52.                        ....controls go here
  53.  
  54.                     </table>
  55.                 </form>
  56.                 </td>
  57.  
  58.             </tr>
  59.         </table>
  60.     </div>
  61.     <div class="content" style="width: 690px">
  62.         <table id="jgrid2">
  63.         </table>
  64.         <div id="pager2">
  65.         </div>
  66.     </div>
  67.  
  68.     </div>
  69.        
  70. element.style {
  71.     -moz-user-select: none;
  72. }
  73. .ui-helper-clearfix:after {
  74.     clear: both;
  75.     content: ".";
  76.     display: block;
  77.     height: 0;
  78.     visibility: hidden;
  79. }
  80. jquery...s?v=5.3 (line 12)
  81. .ui-draggable .ui-dialog-titlebar {
  82.     cursor: move;
  83. }
  84. jquery...s?v=5.3 (line 417)
  85. .ui-dialog .ui-dialog-titlebar {
  86.     font-size: 1.1em;
  87.     padding: 2px 2px 2px 10px;
  88.     position: relative;
  89. }
  90. jquery...s?v=5.3 (line 391)
  91. .ui-dialog-titlebar {
  92.     background-color: #5D81AB;
  93.     background-image: url("../../Images/ThkStrip.jpg");
  94.     background-repeat: repeat-x;
  95. }
  96. Sales_...s?v=5.3 (line 1436)
  97. .ui-corner-all {
  98.     border-radius: 6px 6px 6px 6px;
  99. }
  100. jquery...s?v=5.3 (line 282)
  101. .ui-widget-header {
  102.     border: 1px solid #C4D1E7;
  103.     color: #222222;
  104.     font-weight: bold;
  105. }
  106. jquery...s?v=5.3 (line 55)
  107. .ui-helper-clearfix {
  108.     display: block;
  109. }
  110.        
  111. $("#Applon").dialog({
  112.     autoOpen: false,
  113.     height: 370,
  114.     width: 710,
  115.     modal: true,
  116.     draggable: false,
  117.     buttons: {
  118.         //'Create an account': function() { },
  119.         Close: function() {
  120.             $(this).dialog('close');
  121.             //$('input:visible:enabled:first').focus();
  122.         }
  123.     },
  124.     close: function() {
  125.     }
  126.        
  127. $('document').ready(function() {
  128.      $("#main").mouseleave(function()
  129.                            {
  130.                                $(this).mouseup();
  131.                            });
  132. });
  133.        
  134. $('document').ready(function() {
  135.      $("#main").mouseleave(function()
  136.                            {
  137.                                $(this).mouseup();
  138.                            });
  139. });
  140.        
  141. $('document').ready(function() {
  142.     $("#main").live("mouseleave", function() {
  143.        $(this).mouseup();
  144.     });
  145. });