script JQUERY Dialog box Pattern1
--------------------
$(function() {
$("#dialog").dialog({
autoOpen: false,
dialogClass: "no-close",
width: 630,
modal: true,
buttons : {
"Cancel" : function() {
$(this).dialog("close");
},
"Confirm" : function() {
document.forms[0].submit();
}
}
});
$(".ui-button-icon-only").hide();
$(".ui-dialog-titlebar").hide();
});
---
function confirmDNW(){
if(document.forms[0].didNotWork && document.forms[0].didNotWork.checked == true){
$("#dialog").html("
$("#dialog").dialog("open");
}else{
document.forms[0].submit();
}
}
div id="dialog"/div
--------------------
$(function() {
$("#dialog").dialog({
autoOpen: false,
dialogClass: "no-close",
width: 630,
modal: true,
buttons : {
"Cancel" : function() {
$(this).dialog("close");
},
"Confirm" : function() {
document.forms[0].submit();
}
}
});
$(".ui-button-icon-only").hide();
$(".ui-dialog-titlebar").hide();
});
---
function confirmDNW(){
if(document.forms[0].didNotWork && document.forms[0].didNotWork.checked == true){
$("#dialog").html("
You are creating 'Did Not Work' timesheet for period of "+ document.getElementById("dateRangeString").value + ".
" + "Once created this timesheet cannot be modified." + "
" +"Please Confirm.
" )$("#dialog").dialog("open");
}else{
document.forms[0].submit();
}
}
div id="dialog"/div
No comments:
Post a Comment