PageSourceSearch

https://www.mfuhospitalbkk.com/modules/flexi/js/velaeasy/webboard.min.js

js mfuhospitalbkk.com collected 2026-09-25 10:58:33 UTC 7,875 bytes, 1 lines download raw bytes

1var veWebboard={};veWebboard.webboardId=0,veWebboard.topicId=0,veWebboard.init=function(){this.webboardId=veMain.webboardId,this.topicId=veMain.webboardTopicId,veWebboard.bindCreateWebboardButton(),veWebboard.bindCreateTopicButton(),veWebboard.bindDeleteTopicById()},veWebboard.bindCreateWebboardButton=function(){$("#frm-webboard #new_webboard").unbind("click").click(function(){$.ajax({type:"POST",cache:!1,url:"/modules/flexi/controllers/webboard-create-controller.php",success:function(a){$.colorbox({href:a}),$.colorbox.resize(),veWebboard.initCreateWebboardForm()}})})},veWebboard.bindCreateTopicButton=function(){var a=$("#topic_webboard_id").val(),b=$(".captcha_cache").val(),c="485px";if(document.documentElement.clientWidth<veMain.smallSizeScreenWidth)var c="100%";$("#create-topic #new_topic").colorbox({href:"/modules/flexi/views/webboard-topic-create.php?webboard_id="+a,width:c,maxWidth:"485px",trapFocus:!1,onComplete:function(){veWebboard.initCreateTopicForm(),"1"==veMain.reCaptchaEnable&&1==b&&""==veMain.member_login&&veReCaptcha.initSpecificElement($("#frm-topic-create .reCaptcha-container").attr("id")),$.colorbox.resize()}})},veWebboard.initCreateTopicForm=function(){"1"!=veMain.reCaptchaEnable&&veCaptcha.init(),$("#create_topic").unbind("click").click(function(){$("#frm-topic-create #title_topic").text(""),$("#frm-topic-create #detail_topic").text(""),$("#frm-topic-create #user_topic").text(""),$(".captcha .error").text("");var a=$.trim($("#frm-topic-create input[name=topic_title]").val()),b=$.trim($("#frm-topic-create textarea[name=topic_detail]").val()),c=$.trim($("#frm-topic-create input[name=topic_by]").val()),d=($("#create-topic input[name=topic_webboard_id]").val(),$("#frm-topic-create input[name=path_title]").val(),$.trim($("#frm-topic-create input[name=submitted_captcha]").val())),e=0,f=($("#frm-topic-create input[name=is_member_login]").val(),$("#frm-topic-create input.captcha_cache").val());return""==a&&($("#frm-topic-create #title_topic").text(_T("__webboard__กรุณาตั้งชื่อกระทู้")),1!=e&&$("#frm-topic-create input[name=topic_title]").focus(),e=1),""==b&&($("#frm-topic-create #detail_topic").text(_T("__webboard__ข้อความอธิบายกระทู้ต้องไม่เป็นค่าว่าง")),1!=e&&$("#frm-topic-create textarea[name=topic_detail]").focus(),e=1),""==c&&($("#frm-topic-create #user_topic").text(_T("__webboard__กรุณาระบุชื่อผู้ตั้งกระทู้")),1!=e&&$("#frm-topic-create input[name=topic_by]").focus(),e=1),"1"!=veMain.reCaptchaEnable&&1==f&&0==veMain.member_login&&""==d&&"edit"!=veMain.mode&&($("#frm-topic-create .error").text(_T("__webboard__กรอกตัวอักษรในภาพ")),1!=e&&$("#frm-topic-create input[name=submitted_captcha]").focus(),e=1),1==e?!1:(veWebboard.createTopicFormSubmit(),!1)})},veWebboard.createTopicFormSubmit=function(){var topic_title=$("#frm-topic-create input[name=topic_title]").val(),topic_detail=$("#frm-topic-create textarea[name=topic_detail]").val(),topic_by=$("#frm-topic-create input[name=topic_by]").val(),webboard_id=$("#create-topic input[name=topic_webboard_id]").val(),webboard_title=$("#frm-topic-create input[name=path_title]").val(),captcha_cache=$("#frm-topic-create input.captcha_cache").val();if("edit"!=veMain.mode&&1==captcha_cache&&0==veMain.member_login)if("1"==veMain.reCaptchaEnable)var submitted_captcha=grecaptcha.getResponse(eval("veReCaptcha."+$("#frm-topic-create .reCaptcha-container").attr("id")));else var submitted_captcha=$("#frm-topic-create input[name=submitted_captcha]").val();else var submitted_captcha="";var member_id=$("#frm-topic-create input[name=member_id]").val();$.ajax({url:"/modules/flexi/controllers/webboard-process-controller.php",type:"POST",data:{task:"new-topic",topic_title:topic_title,topic_detail:topic_detail,topic_by:topic_by,webboard_id:webboard_id,webboard_title:webboard_title,parent_type:"webboard",member_id:member_id,g_recaptcha_response:submitted_captcha,submitted_captcha:submitted_captcha},async:!0,success:function(data,textStatus){if(data=eval("("+data+")"),"1"==data.status)alert(_T("__webboard__สร้างกระทู้สำเร็จ")),$.colorbox.close(),document.location.href=1!=veMain.fb_page_tab?"/webboard/"+webboard_id+"/"+webboard_title+"/":"/webboard/"+webboard_id+"/"+webboard_title+"?fb_page_tab=1";else{if($("#comment-box").text("Error!"),"1"==veMain.reCaptchaEnable)var $captchaErrorElement=$("#frm-topic-create .webboard-topic-captcha-error");else{var $captchaErrorElement=$("#frm-topic-create .error");veCaptcha.reloadImage()}$captchaErrorElement.text(_T("__webboard__รหัสป้องกันสแปมไม่ถูกต้อง กรุณาลองใหม่อีกครั้ง"))}}})},veWebboard.initCreateWebboardForm=function(){var submitHandler=function(event){var nav_title=$.trim($("#frm-webboard input[name=webboard_title]").val()),title=$.trim($("#frm-webboard input[name=webboard_name]").val()),description=$.trim($("#frm-webboard textarea[name=webboard_desc]").val()),position=$("#frm-webboard input[name=position]").val(),parent_id=$("#frm-webboard input[name=parent_id]").val(),err=0,member_only="";return $("#frm-webboard input[name=member_only]").is(":checked")&&(member_only=1),""==nav_title?($("#msg_nav_title").text(_T("__webboard__กรุณาระบุชื่อเมนู")),1!=err&&$("input[name=webboard_title]").focus(),err=1):$("#msg_nav_title").text(""),""==title?($("#msg_title").text(_T("__webboard__กรุณาระบุชื่อเว็บบอร์ด")),1!=err&&$("input[name=webboard_name]").focus(),err=1):$("#msg_title").text(""),""==description?($("#msg_desc").text(_T("__webboard__ข้อความอธิบายเว็บบอร์ดต้องไม่เป็นค่าว่าง")),1!=err&&$("textarea[name=webboard_desc]").focus(),err=1):$("#msg_desc").text(""),0!=err?!1:(veNav.validateSymbol(nav_title)&&veNav.validateSymbol(title)&&$.ajax({type:"POST",cac
1he:!1,url:"/modules/flexi/controllers/webboard-process-controller.php",data:{task:"new-webboard",nav_title:nav_title,title:title,description:description,position:position,parent_id:parent_id,member_only:member_only},async:!0,success:function(data,textStatus){data=eval("("+data+")"),"1"==data.status&&(document.location.href=data.href)}}),!1)};$("#frm-webboard").unbind("submit",submitHandler).bind("submit",submitHandler),$("#frm-webboard #new_webboard").unbind("click",submitHandler).bind("click",submitHandler);var el_webboard_title_input=$("#frm-webboard input[name=webboard_title]"),el_webboard_name_input=$("#frm-webboard input[name=webboard_name]"),el_webboard_title_sync=$("#frm-webboard input[name=webboard_title_sync]");veNav.contentTitleSync(el_webboard_title_input,el_webboard_name_input,el_webboard_title_sync)},veWebboard.bindDeleteTopicById=function(){$(".webboard .delete_topic > a").unbind("click").click(function(event){var confirm_delete=confirm(_T("__webboard__ต้องการลบกระทู้นี้ ?"));if(1==confirm_delete){var id=$(this).attr("data-id");$.ajax({type:"POST",cache:!1,url:"/modules/flexi/controllers/webboard-process-controller.php",data:{task:"delete-topic",topic_delete_id:id},async:!0,success:function(data,textStatus){data=eval("("+data+")"),"1"==data.status?(alert(_T("__webboard__ลบกระทู้สำเร็จ")),document.location.href=document.location.href):alert(_T("__webboard__ลบกระทู้ไม่สำเร็จ"))}})}})},veWebboard.update=function(a,b,c){$.ajax({url:"/modules/flexi/controllers/webboard-process-controller.php",type:"POST",data:{task:"update",field:a,value:b,webboard_id:c},dataType:"html",async:!1,success:function(){veEditMode.showSavedSplash()}})};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.