$(window).resize(function(){ var topbarHeight = $(".bar-mid").height(); var paddingHeight = 60; var newHeight = $(window).height() - topbarHeight - paddingHeight; CS.ViewCampaign.changeFrameHeight(newHeight); });
function change_parent_url(url) { document.location = url; }
var docHeight = $(document).height(); var topbarHeight = $(".bar-mid").height(); var paddingHeight = 60;
$(".frame").css("height", docHeight - topbarHeight - 1 + "px"); $('.dynamic-content').height(docHeight - topbarHeight - paddingHeight); $(function () { var toggleValue = function ($checkbox) { var value = $checkbox.attr('value'); $checkbox.attr('value', $checkbox.attr('toggle-value')); $checkbox.attr('toggle-value', value); }; $('.ko-radio').bind('change', function (e) { $('.ko-checkbox:visible').each(function (i, e) { if ($(e).prop('checked')) { $(e).prop('checked', false); toggleValue($(e)); } }); $(this).closest('form').trigger('submit'); }); $('.ko-checkbox').bind('change', function (e) { toggleValue($(this)); $('#' + $(this).attr('parent-id')).prop('checked', true); $(this).closest('form').trigger('submit'); }); });
CS.ViewCampaign.showVersionSwitcher();CS.ViewCampaign.toggleVersion()