PageSourceSearch

https://www.kester.com/Resources/libraries/FmKnockoutBindingHandle…/FmBindingHandlers-Release.js?cdv=363

js kester.com collected 2026-09-24 21:22:03 UTC 3,157 bytes, 1 lines download raw bytes

1ko.bindingHandlers.bsChecked={init:function(e,n,i,t,o){var a=n();ko.bindingHandlers.event.init(e,(function(){return{change:function(){a(e.value)}}}),i,t,o)},update:function(e,n,i,t,o){$(e).val()==ko.unwrap(n())&&setTimeout((function(){$(e).closest(".btn").button("toggle")}),1)}},ko.bindingHandlers.bootstraptoggle={init:function(e,n,i,t,o){var a=ko.unwrap(n());$(e).toggle(a)},update:function(e,n,i,t,o){var a=$(e),r=ko.unwrap(n());e.checked=e.value===r,null!=r&&a.val()===r.toString()&&a.closest("label").addClass("active")}},ko.bindingHandlers.checkbox={init:function(e,n,i,t,o){var a,r;if(r=n(),!ko.isWriteableObservable(r))throw"You must pass an observable or writeable computed";(a=$(e)).on("click",(function(){r(!r())})),ko.computed({disposeWhenNodeIsRemoved:e,read:function(){a.toggleClass("active",r())}})}},ko.bindingHandlers.datepicker={init:function(e,n,i){var t={format:"MM/DD/YYYY hh:mm A",defaultDate:ko.unwrap(n())};ko.utils.extend(t,i().datepickerOptions),$(e).datetimepicker(t).on("dp.change",(function(e){var i=n();void 0!==e.timeStamp&&i($(this).data("DateTimePicker").date().format(t.format))}))},update:function(e,n){var i=ko.unwrap(n());$(e).datetimepicker("date",i||"")}},ko.bindingHandlers.executeOnEnter={init:function(e,n,i,t){var o=i();$(e).keypress((function(e){return 13!==(e.which?e.which:e.keyCode)||(o.executeOnEnter.call(t),!1)}))}},ko.bindingHandlers.fadeVisible={init:function(e,n){var i=n();$(e).toggle(ko.utils.unwrapObservable(i))},update:function(e,n){var i=n();ko.utils.unwrapObservable(i)?$(e).fadeIn():$(e).fadeOut()}},ko.bindingHandlers.numeric={init:function(e){$(e).on("keydown",(function(e){46===e.keyCode||8===e.keyCode||9===e.keyCode||27===e.keyCode||13===e.keyCode||65===e.keyCode&&!0===e.ctrlKey||190===e.keyCode||110===e.keyCode||e.keyCode>=35&&e.keyCode<=39||(e.shiftKey||(e.keyCode<48||e.keyCode>57)&&(e.keyCode<96||e.keyCode>105))&&e.preventDefault()}))}},ko.bindingHandlers.phonenumber={init:function(e,n,i){ko.bindingHandlers.value.init(e,n,i)},update:function(e,n){var i=$(e),t=ko.utils.unwrapObservable(n());null!=t&&(t=t.toString().replace(/(\d\d\d)(\d\d\d)(\d\d\d\d)/,"$1-$2-$3"),i.val(t),i.change())}},ko.bindingHandlers.radio={init:function(e,n,i,t,o){var a,r,d;if(d=n(),!ko.isWriteableObservable(d))throw"You must pass an observable or writeable computed";a=(r=$(e)).hasClass("btn")?r:$(".btn",r),elementBindings=i(),a.each((function(){var e,n;return this,e=$(this),n=elementBindings.radioValue||e.attr("data-value")||e.attr("value")||e.text(),e.on("click",(function(){d(ko.utils.unwrapObservable(n))})),ko.computed({disposeWhenNodeIsRemoved:this,read:function(){e.toggleClass("active",d()===ko.utils.unwrapObservable(n))}})}))}},ko.bindingHandlers.select2={init:function(e,n){var i=ko.toJS(n())||{};setTimeout((function(){$(e).select2(i)}),10)}},ko.bindingHandlers.slideVisible={init:function(e,n){var i=ko.utils.unwrapObservable(n());$(e).toggle(i)},update:function(e,n){ko.utils.unwrapObservable(n())?$(e).slideDown():$(e).slideUp()}},ko.subscribable.fn.subscribeChanged=function(e){var n;return this.subscribe((function(e){n=e}),this,"beforeChange"),this.subscribe((function(i){e(i,n)}))};

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.