1/** 2 * Created by æ ¶ä¸é on 2015/10/26. 3 */ 4 5 6$(document).on("submit","form.ajax", function (event) { 7 event.preventDefault(); 8 var $form = $(this); 9 var $button = $form.find('button'); 10 var original_text = $button.html(); 11 //var element_key = $form.attr("element_key"); 12 13 var post_data = $form.serializeArray(); 14 post_data.push({name: "page_id", value: page_id}); 15 16 // éä¿¡ 17 $.ajax({ 18 url: $form.attr('action'), 19 type: $form.attr('method'), 20 data: post_data, 21 //timeout: 10000, // åä½ã¯ããªç§ 22 dataType: "json", 23 beforeSend: function(xhr, settings) { 24 $button.html('<i class="fa-refresh fa fa-spin"></i> éä¿¡ä¸'); 25 $button.attr('disabled', true); 26 }, 27 // å¿çå¾ 28 complete: function(xhr, textStatus) { 29 $button.attr('disabled', false); 30 $button.html(original_text); 31 }, 32 33 // éä¿¡æåæã®å¦ç 34 success: function(result, textStatus, xhr) { 35 // å ¥åå¤ãåæå 36 $form[0].reset(); 37 38 if(result.msg != undefined){ 39 alert(result.msg); 40 } 41 if(result.redirect == "reload"){ 42 location.reload(); 43 } else if(result.redirect != undefined) { 44 location.href = result.redirect; 45 } 46 }, 47 48 // é信失ææã®å¦ç 49 error: function(xhr, textStatus, error) { 50 alert("éä¿¡ã¨ã©ã¼ãçºçãã¾ãã"); 51 } 52 }); 53});
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.