← Back
Editing: calendar-widget-config.js
(function($) { window.coreCalendarWidgetConfig.default({ jQuery, defaultApiKey: 'pLOeuGq2JL05uEGrZG7DuGWu6sh2OnMz', }); $('.nav-tabs').on('click', 'a', function(e){ e.preventDefault(); //sellf = e.target; $('.nav-tabs li').removeClass('active'); $(this).parent().addClass('active'); var active = $(this).parent().index(); $(this).parent().parent().next().children().removeClass('in'); $(this).parent().parent().next().children().removeClass('active'); $(this).parent().parent().next().children().eq(active).addClass('in'); $(this).parent().parent().next().children().eq(active).addClass('active'); }); var countriesList = 'Select Country'; $.ajax({ type: "POST", url: "/wp-content/plugins/ticketmaster/admin/data/countryCode.json", dataType: "json", beforeSend: function() { }, cache: !1, success: function(data) { $.each( data.CountryCode, function (i, item) { var countryCode = item.substring(0, 2); var countryName = item.substring(4, item.length-1); countriesList += "<option value='" + countryCode + "'>" + countryName + "</option>"; }); $('#w-countryCode').html(countriesList); }, error: function() { countriesList += "<option value=''>Ajax error!</option>"; $('#w-countryCode').html(countriesList); } }) })(jQuery);
Save File
Cancel