1 |
- UI.extend.confirm=function(text,callback1,callback2,callback3){var templete='<div class="pup_upbox width265" id="pup_upbox" style="display:none">'+' <div class="pup_uptitle">'+' <p class="icon_align">'+' <i class="icon_skin pup_titleicon"></i>'+' <span class="pup_titlename">提示</span>'+" </p>"+' <span class="icon_skin pup_close"></span>'+" </div>"+' <div class="pup_content">'+text+" </div>"+' <div class="pup_footer">'+' <div class="pup_footercontert clearfix">'+' <a class="fr mr15px mt1px" href="javascript:void(0);" onclick="return false;"><span class="web_skin grayleft_addbtn pad_lr">否</span><span class="web_skin grayright_addbtn"></span></a>'+' <a class="fr mr15px mt1px" href="javascript:void(0);" onclick="return false;"><span class="web_skin blueleft_btn pad_lr">是</span><span class="web_skin blueright_btn"></span></a>'+" </div>"+" </div>"+"</div>";if(document.getElementById("pup_upbox")){$("#pup_upbox").remove()}$("body").append(templete);$("#pup_upbox").ui("dialog",{close:".grayleft_addbtn,.pup_close"}).find(".blueleft_btn").click(function(){if(typeof callback1=="function"){callback1(function(bl){if(bl){$("#pup_upbox").closeDialog()}})}else{$("#pup_upbox").closeDialog()}});$("#pup_upbox").find(".grayleft_addbtn").click(function(){typeof callback2=="function"&&callback2()});$("#pup_upbox").find(".pup_close").click(function(){typeof callback3=="function"&&callback3()})};UI.extend.alert=function(text,callback1,callback2){var templete='<div class="pup_upbox width265" id="pup_upbox" style="display:none">'+' <div class="pup_uptitle">'+' <p class="icon_align">'+' <i class="icon_skin pup_titleicon"></i>'+' <span class="pup_titlename">提示</span>'+" </p>"+' <span class="icon_skin pup_close"></span>'+" </div>"+' <div class="pup_content">'+text+" </div>"+' <div class="pup_footer">'+' <div class="pup_footercontert clearfix" style="text-align:center;">'+' <a class="mt1px" href="javascript:void(0);" onclick="return false;" style="display:inline-block;height:24px;margin-left:15px"><span class="web_skin blueleft_btn pad_lr">是</span><span class="web_skin blueright_btn" style="width:4px !important;"></span></a>'+" </div>"+" </div>"+"</div>";if(document.getElementById("pup_upbox")){$("#pup_upbox").remove()}$("body").append(templete);$("#pup_upbox").ui("dialog",{close:".grayleft_addbtn,.pup_close"}).find(".blueleft_btn").click(function(){$("#pup_upbox").closeDialog(callback1)});$("#pup_upbox").find(".pup_close").click(callback2)};
|