1/* 2 * To change this template, choose Tools | Templates 3 * and open the template in the editor. 4 */ 5 6(function($){ 7Drupal.behaviors.btmSpecialsLoadPromoCode = { 8 attach: function(context, settings) { 9// if(typeof settings.btm_specials != 'undefined' && settings.btm_specials.promo_code != '') { 10// if($('#edit-rcav-coupon', context).length > 0) { 11// 12// $(window).load(function(){ 13// 14// $('#edit-rcav-coupon', context).val(settings.btm_specials.promo_code); 15// 16// var start = $("#edit-rcav-begin", context).val(); 17// var end = $("#edit-rcav-end", context).val(); 18// 19//// if(typeof console == 'object'){ 20//// console.log(start); 21//// console.log(end); 22//// } 23// if(start != '' && end != '') { 24// $("#rc-core-item-avail-form", context).submit(); 25// } 26// 27// }); 28// } 29// 30// 31// } 32 33 } 34} 35 36 37//Drupal.behaviors.btmSpecialsUnitToggle = { 38// attach: function(context, settings) { 39// alert('hello1'); 40// 41// $('.node-special a:first', context).once( 42// function() { 43// var parent_context = $(this).parent().parent().parent(); 44// alert('hello'); 45// console.log(parent_context); 46// 47// var num_participating = $(".field-group-format-wrapper .node-property", parent_context).length; 48// 49// 50// 51// var link_text = $(this).html(); 52// var toggle_link = "<span class='toggle-symbol'> + </span>"; 53// $(this).html(toggle_link + link_text + " ( " + num_participating + " )"); 54// } 55// ); 56// 57// $('.node-special .field-group-format-title', context).click( 58// function() { 59// var parent_context = $(this).parent().parent().parent(); 60// 61// 62// 63// if($('.field-group-format-title .toggle-symbol', parent_context).html() == ' + ') { 64// 65// $('.field-group-format-title .toggle-symbol', parent_context).html(' - '); 66// } 67// else{ 68// $('.field-group-format-title .toggle-symbol', parent_context).html(' + '); 69// } 70// } 71// ); 72// 73// 74// 75// } 76// } 77})(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.