1/* ============================================================ 2 * Account JS (WOJO Forms) 3 * 4 * 5 * ============================================================ */ 6 7 8$(document).ready(function() { 9 10//Manage forms for WOJO (I need to remove this later) 11 12 /* == Close Message == */ 13 $('body').on('click', '.message i.close.icon', function () { 14 var $msgbox = $(this).closest('.message') 15 $msgbox.slideUp(500, function () { 16 $(this).remove() 17 }); 18 }); 19 20 /* == Master Form == */ 21 $('body').on('click', 'button[name=dosubmit], .dosubmit', function() { 22 var $parent = ($(this).is("button")) ? $(this).closest('.wojo.form') : $('.messi-content').find('.wojo.form'); 23 var posturl = $(this).data('url'); 24 25 function showResponse(json) { 26 27 if(json.type == "success"){ 28 29 var type1='success'; 30 } else { 31 var type1='danger'; 32 } 33 var options = { 34 style: 'flip', 35 position: 'top-left', 36 type: type1, 37 message: json.message 38 }; 39 40 $('body').pgNotification(options).show(); 41 42 if(json.type == "success"){ 43 44 $parent.trigger("reset"); 45 } 46 47 } 48 49 function showLoader() { 50 $($parent).addClass("loading"); 51 } 52 var options = { 53 target: null, 54 beforeSubmit: showLoader, 55 success: showResponse, 56 type: "post", 57 url: posturl, 58 dataType: 'json' 59 }; 60 61 $('#wojo_form').ajaxForm(options).submit(); 62 }); 63 64});
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.