1miniShop2.Message = { 2 initialize: function () { 3 miniShop2.Message.close = function () { 4 }; 5 miniShop2.Message.show = function (message) { 6 if (message != '') { 7 alert(message); 8 } 9 }; 10 11 if (typeof($.fn.jGrowl) === 'function') { 12 $.jGrowl.defaults.closerTemplate = '<div>[ ' + miniShop2Config.close_all_message + ' ]</div>'; 13 miniShop2.Message.close = function () { 14 $.jGrowl('close'); 15 }; 16 miniShop2.Message.show = function (message, options) { 17 if (message != '') { 18 $.jGrowl(message, options); 19 } 20 } 21 } 22 }, 23 success: function (message) { 24 if (typeof($.fn.jGrowl) === 'function') { 25 miniShop2.Message.show(message, { 26 theme: 'ms2-message-success', 27 sticky: false 28 }); 29 } 30 }, 31 error: function (message) { 32 if (typeof($.fn.jGrowl) === 'function') { 33 miniShop2.Message.show(message, { 34 theme: 'ms2-message-error', 35 sticky: false 36 }); 37 } 38 }, 39 info: function (message) { 40 if (typeof($.fn.jGrowl) === 'function') { 41 miniShop2.Message.show(message, { 42 theme: 'ms2-message-info', 43 sticky: false 44 }); 45 } 46 } 47};
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.