1var MIOBoxing = MIOBoxing || {}; 2 3 4(function ($) { 5 /** 6 * Behavior to attach to the show all class. 7 */ 8 Drupal.behaviors.boxy_confirm = { 9 attach: function (context) { 10 $('.confirm').not('.confirm-processed').addClass('confirm-processed').each(function (i) { 11 $(this).click(function () { 12 var msg = Drupal.t('Are you sure want to delete this item?'); 13 if ($(this).attr('data-confirm-msg') != undefined) { 14 msg = $(this).attr('data-confirm-msg'); 15 } 16 17 Boxy.confirm(msg, function () { 18 if (undefined != Drupal.settings.boxy_confirm) { 19 var target = Drupal.settings.boxy_confirm.target; 20 21 switch(Drupal.settings.boxy_confirm.tag){ 22 case 'form': 23 form = Drupal.settings.boxy_confirm.form; 24 Drupal.settings.boxy_confirm = null; 25 $(form).submit(); 26 break; 27 case 'a': 28 Drupal.settings.boxy_confirm = null; 29 window.location = target; 30 break; 31 } 32 33 } 34 return false; 35 }, {title: 'Confirmation'}); 36 37 if($(this).attr('href')){ 38 Drupal.settings.boxy_confirm = {'target': $(this).attr('href'), 'tag': 'a'}; 39 } 40 else{ 41 var form = $(this).parents('form'); 42 if (form.length > 0) { 43 Drupal.settings.boxy_confirm = {'target': $(form).attr('action'), 'tag': 'form', 'form':form}; 44 } 45 } 46 return false; 47 }); 48 }); 49 } 50 }; 51 52 var bx = null; 53 54 MIOBoxing.show = function (data, options) { 55 if (data.errId) { 56 alert(data.errMsg); 57 } 58 else { 59 if (bx == null) { 60 bx = new Boxy("", options); 61 } 62 63 bx.setContent(data.content); 64 bx.center(); 65 bx.show(); 66 } 67 68 }; 69 70})(jQuery);
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.