Home > Web Front-end > JS Tutorial > body text

Double-clicking artDialog will close the modification process of the dialog box_jquery

WBOY
Release: 2016-05-16 17:26:43
Original
952 people have browsed it

artDialog, a jquery dialog plug-in, is very easy to use

. However, when using it, I found that the dialog box will appear when the mouse is double-clicked. Looking at the source code, I found that there is an event to monitor the mouse double-click as shown below:
Double-clicking artDialog will close the modification process of the dialog box_jquery
The simple way is to remove this line. For expansion, it can be changed to the following figure:
Double-clicking artDialog will close the modification process of the dialog box_jquery
In this way, you can dynamically configure whether this function is needed. The usage method is as follows:

Copy code The code is as follows:

$.dialog({
title : json.theme,
content: json.content,
dbclickHide:true, ////The default is false, if it is true, double-clicking will close the window
lock: true,
cancelValue: 'Close the window',
cancel:function(){
}
});

If you use compressed js, the variable name will also be changed after the js is compressed. Then change it to the following picture:
Double-clicking artDialog will close the modification process of the dialog box_jquery

Attached is the modified compressed package

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!