1 2/** 3 * common message modal 4 * @param message 5 * @param type 6 * @param modalOrigin 7 * @returns 8 */ 9function utilsMessageModal(message,type,modalOrigin){ 10 var ID = ''; 11 if(!_not_nullcheck_str(message)){ 12 return false; 13 } 14 15 // select modal type. 16 if(!_not_nullcheck_str(type)){ 17 // 18 }else if(type == 'e'){ // error 19 ID = 'mWinErr'; 20 }else if(type == 's'){ // s size 21// ID = 'mWinErr'; 22 }else if(type == 'm'){ // m size 23// ID = 'mWinErr'; 24 }else if(type == 'l'){ // l size 25// ID = 'mWinErr'; 26 }else if(type == 'c'){ // confirm 27 ID = 'mWinConfirm'; 28 } 29 message = message.replace('\n\r','<br/>'); 30 message = message.replace('\r\n','<br/>'); 31 message = message.replace('\n','<br/>'); 32 message = message.replace('\r','<br/>'); 33 34 // when call from modal 35 if(!_not_nullcheck_str(modalOrigin)){ 36 $('[data-remodal-id='+ID+']').data('modalOrigin','mWinOperation'); 37 } 38 39 $('#' + ID +' .modalMessage').html(message); 40 $('[data-remodal-id='+ID+']').remodal().open(); 41 42 return false; 43 44} 45 46 47 48/** 49 * null check 50 * @param str 51 * @returns 52 */ 53function _not_nullcheck_str(str){ 54 if(str != null && str != '' && str != undefined){ 55 return true; 56 }else{ 57 return false; 58 } 59}
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.