Sha256: b80fc4478512c317b20b420737aecca163ed230edd5419234f8d72b9212fcb61
Contents?: true
Size: 937 Bytes
Versions: 4
Compression:
Stored size: 937 Bytes
Contents
function scap_content_selected(element){ var attrs = attribute_hash(['scap_content_id']); var url = $(element).attr('data-url'); tfm.tools.showSpinner(); $.ajax({ data: attrs, type: 'post', url: url, complete: function() { reloadOnAjaxComplete($(element));}, success: function(request) { $('#scap_content_profile_select').html(request); } }) } 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
4 entries across 4 versions & 1 rubygems