1(function ($) { 2 $.ETC = $.ETC || {}; 3 $.ETC.FKS = $.ETC.FKS || {}; 4 5 $.ETC.FKS.Application = { 6 application_init: function (frm, data) { 7 frm.onInit = true; 8 $.ETC.EventContainer.init( 9 frm.container 10 .data('init', data) // пÑедваÑиÑелÑÐ½Ð°Ñ Ð¸Ð½Ð¸ÑиализаÑÐ¸Ñ ÑоÑÑоÑÐ½Ð¸Ñ 11 .on('OnPriceCannotBeSetChanged', function (e, code) { onPriceCannotBeSetChanged(frm, e, code); }) 12 .on('OnIsAgreeChanged', function (e, code) { onIsAgreeChanged(frm, e, code); }) 13 ); 14 frm.onInit = false; 15 } 16 }; 17 18 function onPriceCannotBeSetChanged(frm, e, selected) { 19 20 selected = $("input#Model_Price_CannotBeSet", frm.container).is(':checked'); 21 22 frm.toggle({ 23 Model_Price_LastInfo: selected, 24 Model_Price_Last: !selected 25 }); 26 27 $("#Model_Price_LastInfo_c", frm.container).toggle(selected); 28 $("#Model_Price_LastInfo_t", frm.container).toggle(selected); 29 30 $("#Model_Price_Last_c", frm.container).toggle(!selected); 31 $("#Model_Price_Last_t", frm.container).toggle(!selected); 32 }; 33 34 function onIsAgreeChanged(frm, e, selected) { 35 36 if ($("#Model_IsAgree", frm.container) != null) 37 { 38 $("[name='save']", frm.container).attr("disabled", !selected); 39 } 40 41 } 42 43})(jQuery);
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.