1(function (window, angular) { 2 'use strict'; 3 4 angular 5 .module("RFPe") 6 .service("dialogService", DialogService); 7 8 DialogService.$inject = []; 9 10 function DialogService() { 11 12 function show(text,title, buttonText,callback) { 13 bootbox.alert({ 14 message: text, 15 buttons: { 16 ok: { 17 label: buttonText || "OK", 18 className: "btn-primary" 19 } 20 }, 21 callback: function(){ 22 if (callback){ 23 callback(); 24 } 25 } 26 }); 27 }; 28 29 function warn(text,buttonText,callback) { 30 bootbox.alert({ 31 message: text, 32 buttons: { 33 ok: { 34 label: buttonText || "OK", 35 className: "btn-warning" 36 } 37 }, 38 callback: function(){ 39 if (callback && 40 typeof callback === 'function'){ 41 callback(); 42 } 43 } 44 }); 45 }; 46 47 function error(text,buttonText,callback) { 48 bootbox.alert({ 49 message: text, 50 buttons: { 51 ok: { 52 label: buttonText || "OK", 53 className: "btn-danger" 54 } 55 }, 56 callback: function(){ 57 if (callback && 58 typeof callback === 'function'){ 59 callback(); 60 } 61 } 62 }); 63 }; 64 65 return { 66 show: show, 67 error: error, 68 warn: warn 69 }; 70 } 71 72})(window, angular);
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.