EasyUI Forum
May 14, 2024, 11:09:15 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: bind function when ok button on messager confrim click  (Read 5312 times)
Opan Mustopah
Full Member
***
Posts: 164


Indonesia


View Profile Email
« on: May 09, 2015, 03:06:29 AM »

hello again,

the title says all.

it is possible to do that? . i already read carefully the document, but there is not method of function to get the ok button, so i can bind that button to some function.

my purpose to do this is because i have already a static function that it called with many form, and i can't change or modify that function which will impact to other form .

many thanks for the answer
Logged

-- Bajak Otak --
*** Sorry for my bad english :3 ***
--JeasyUI version 1.4--
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: May 09, 2015, 08:56:51 AM »

After enter something on the textbox and then click the 'Ok' button, the callback function is called. Please refer to the following code.
Code:
$.messager.confirm('Confirm', 'Are you sure to exit this system?', function(r){
if (r){
// exit action;
}
});
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!