1var Global = { 2 confirmDialog: function (title, content, callback, cancelCallback) { 3 var contentHolder = $('<div class="confirm-wrap" />').html(content); 4 var modal = $('<div />').append(contentHolder); 5 modal.dialog({ 6 modal: true, 7 resizable: false, 8 width: 350, 9 height: 168, 10 title: title, 11 buttons: [{ 12 text: 'ÐÑодолжи', 13 click: function () { 14 if (!!callback && typeof callback == 'function') { 15 callback(); 16 } 17 $(this).dialog('close'); 18 } 19 }, { 20 text: 'ÐÑкажи', 21 click: function () { 22 if (!!cancelCallback && typeof cancelCallback == 'function') { 23 cancelCallback(); 24 } 25 $(this).dialog('close'); 26 } 27 }], 28 close: function () { 29 $(this).remove(); 30 } 31 }).dialog('open'); 32 }, 33 errorDialog: function (title, content) { 34 var contentHolder = $('<div class="error-wrap" />').html(content); 35 var modal = $('<div />').append(contentHolder); 36 modal.dialog({ 37 modal: true, 38 resizable: false, 39 width: 350, 40 height: 'auto', 41 title: title, 42 buttons: [{ 43 text: 'OK', 44 click: function () { $(this).dialog('close'); } 45 }], 46 close: function () { 47 $(this).remove(); 48 } 49 }).dialog('open'); 50 }, 51 infoDialog: function (title, content, callback) { 52 var contentHolder = $('<div class="confirm-wrap"/>').html(content); 53 var modal = $('<div />').append(contentHolder); 54 modal.dialog({ 55 modal: true, 56 resizable: false, 57 width: 350, 58 height: 168, 59 title: title, 60 buttons: [{ 61 text: 'ÐÐ', 62 click: function () { 63 if (!!callback && typeof callback == 'function') { 64 callback(); 65 } 66 $(this).dialog('close'); 67 } 68 }], 69 close: function () { 70 $(this).remove(); 71 } 72 }).dialog('open'); 73 } 74};
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.