From: http://vb2005xu.iteye.com/blog/1540082
When I used it today, I found that double-click the mask layer will automatically close it. The version I used is 5.0, which should be the latest version ........
The reason is that a double-click event is bound to the mask layer to close the event... helpless... but this feature is not useless ....
Here I made the following enhancement: add the dblclick_hide item to the configuration parameters, for example:
JS Code
- VaR frm_user_art = art. Dialog ({
- Title: 'modify user information ',
- Width: "360px ",
- ESC: false, lock: True, dblclick_hide: false,
- Content: $ ('# K-Info-show'). Get (0 ),
- Beforeunload: function (){
- $ ('# K-Info-show'). Hide (). Empty ();
- Window. art_frm_user_update = NULL;
- }
- }). Lock ();
If this parameter is set to false, double-click the mask layer and choose not to close it. Otherwise, the mask layer is disabled. The default value is false.
Changed the source file artdialog. js.
JS Code
- $ Div. BIND ('click', function (){
- That. _ reset ();
- }). BIND ('dblclick', function (){
- If (config. dblclick_hide ){
- That. _ click ('cancel ');
- }
- });
You can search for it by yourself. Find this location and change the code to this location. In fact, the line if (config. dblclick_hide) is added for judgment.