cockpit/js/ui.js in cpee-1.3.223 vs cockpit/js/ui.js in cpee-1.3.224

- old
+ new

@@ -1,18 +1,10 @@ $(document).ready(function() { - if (!($.cookie('cpee_iagree'))) { - var skip = false; + if (!($.cookie('cpee_iagree')) && $("body > div[id='disclaimer']").length > 0) { + $("body > :not([id='disclaimer'])").remove(); + $("body > [id='disclaimer']").removeClass('hidden'); - $('body').children().each(function(key,c){ - if (skip) { - $(c).remove(); - } else { - $(c).removeClass('hidden'); - } - skip = true; - }); - $("#iagree").click(function(){ if($(this).is(':checked')){ $("#icontinue").prop("disabled", false); } else { $("#icontinue").prop("disabled", true); @@ -20,7 +12,9 @@ }); $("#icontinue").click(function(){ $.cookie('cpee_iagree','yes'); location.reload(); }); + } else { + cockpit(); } });