Sha256: 5d9a6926e36b6b9f8c24b20041c9d8bc92d0d5cc810d3384a746ab255d83ac80
Contents?: true
Size: 1.01 KB
Versions: 7
Compression:
Stored size: 1.01 KB
Contents
function scap_content_selected(element){ var attrs = attribute_hash(['scap_content_id']); var url = $(element).attr('data-url'); $(element).indicator_show(); $.ajax({ data: attrs, type: 'post', url: url, complete: function() { $(element).indicator_hide();}, success: function(request) { $('#file-location').remove(); $('#scap_content_profile_select').html(request); $('#scap_content .alert-info').append($('#file-location')); } }) } function previous_step(previous) { $('#policy_current_step').val(previous); $('#new_policy').submit(); } function period_selected(period) { $("#policy_weekday, #policy_day_of_month, #policy_cron_line").closest("div.clearfix").hide(); switch($(period).val()) { case 'weekly': field = "#policy_weekday"; break; case 'monthly': field = "#policy_day_of_month"; break; case 'custom': field = "#policy_cron_line"; break; default: field = ""; } $(field).closest("div.clearfix").show(); }
Version data entries
7 entries across 7 versions & 1 rubygems