PageSourceSearch

https://www.ntccthailand.org/sites/default/files/js/optimized/js_P…zwKr7L9Y3f_GJ1llaTHmjuyZsZG_twzZI.js?tiucf8

js ntccthailand.org collected 2026-09-25 00:09:01 UTC 2,604 bytes, 3 lines download raw bytes

1/* Source and licensing information for the line(s) below can be found at https://www.ntccthailand.org/themes/contrib/bootstrap/js/misc/dialog.ajax.js. */
2(function($,Drupal,Bootstrap){Drupal.behaviors.dialog.ajaxCurrentButton=null;Drupal.behaviors.dialog.ajaxOriginalButton=null;var success=Drupal.Ajax.prototype.success;Drupal.Ajax.prototype.success=function(response,status){if(this.dialogType)for(var i=0,l=response.length;i<l;i++)if(response[i].dialogOptions){response[i].dialogType=response[i].dialogOptions.dialogType=this.dialogType;response[i].$trigger=response[i].dialogOptions.$trigger=$(this.element)};return success.apply(this,[response,status])};var beforeSerialize=Drupal.Ajax.prototype.beforeSerialize;Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(this.dialogType){options.data['ajax_page_state[dialogType]']=this.dialogType;var id=$(this.element).parents('.js-drupal-dialog:first').attr('id');if(id)options.data['ajax_page_state[dialogId]']=id};return beforeSerialize.apply(this,arguments)};Drupal.behaviors.dialog.ajaxUpdateButtons=function(reset){if(this.ajaxCurrentButton&&this.ajaxOriginalButton){this.ajaxCurrentButton.html(this.ajaxOriginalButton.html()||this.ajaxOriginalButton.attr('value'));this.ajaxCurrentButton.prop('disabled',this.ajaxOriginalButton.prop('disabled'))};if(reset){this.ajaxCurrentButton=null;this.ajaxOriginalButton=null}};$(document).ajaxSend(function(){Drupal.behaviors.dialog.ajaxUpdateButtons()}).ajaxComplete(function(){Drupal.behaviors.dialog.ajaxUpdateButtons(true)});Drupal.behaviors.dialog.prepareDialogButtons=function prepareDialogButtons($dialog){var _this=this,buttons=[],$buttons=$dialog.find('.form-actions').find('button, input[type=submit], a.button, .btn');$buttons.each(function(){var $originalButton=$(this).attr('tabindex',-1).css({display:'block',width:0,height:0,padding:0,border:0,overflow:'hidden'});buttons.push({text:Bootstrap.stripHtml($originalButton)||$originalButton.attr('value'),class:$originalButton.attr('class').replace('use-ajax-submit',''),click:function click(e){e.preventDefault();e.stopPropagation();_this.ajaxCurrentButton=$(e.target);_this.ajaxOriginalButton=$originalButton;Bootstrap.simulate($originalButton,['mousedown','mouseup','click'])},create:function(){_this.ajaxCurrentButton=$(this);_this.ajaxOriginalButton=$originalButton;_this.ajaxUpdateButtons(true)}})});return buttons}})(window.jQuery,window.Drupal,window.Drupal.bootstrap)
3/* Source and licensing information for the above line(s) can be found at https://www.ntccthailand.org/themes/contrib/bootstrap/js/misc/dialog.ajax.js. */

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.