-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathordering.min.js
More file actions
1 lines (1 loc) · 1.68 KB
/
ordering.min.js
File metadata and controls
1 lines (1 loc) · 1.68 KB
1
$(function(){$("table tr:odd").not(":first").addClass("odd");$("tr").not(":first").mouseover(function(){$(this).addClass("over")}).mouseout(function(){$(this).removeClass("over")});$(".hidden").hide();$("input:checked").each(function(){$(this).parent().addClass("selected");toggle_hiddens(this,"show")});$(":radio, :checkbox").click(function(){if($(this).attr("checked")==true&&$("form").attr("id")!="step5"){var A=$(this).parents("dl").find(":radio");if(A){A.parent().removeClass("selected")}toggle_hiddens(this,"show");$(this).parent().addClass("selected")}else{if($("form").attr("id")!="step5"){toggle_hiddens(this,"hide");$(this).parent().removeClass("selected")}}});$("input.text, select.input, textarea.input").focus(function(){$(this).parent().addClass("selected")});$("input.text, select.input, textarea.input").blur(function(){$(this).parent().removeClass("selected")});if($("form").attr("id")!="step1"&&$("form").attr("id")!="step6"){$("#go_previous").html('<button type="button">Previous</button>');$("#go_previous button").click(function(){var B=$("li.current a").attr("href").split("/");var C=B.pop();if(C){var A=C-1;location.href=location.protocol+"//"+location.host+B.join("/")+"/"+A}})}if($.browser.msie){$("button").hover(function(){$(this).css("cursor","pointer")},function(){$(this).css("cursor","auto")})}$("#reset_form a").click(function(){window.location=$(this).attr("href")});$("#reset_form a").confirm({msg:"Are you sure? ",timeout:6000})});function toggle_hiddens(A,B){hiddens=$(A).parent().find(".hidden");if(hiddens){if(B=="show"){if($(A).attr("type")=="radio"){$("input[name='"+$(A).attr("name")+"']").siblings().filter(".hidden").hide()}hiddens.show()}else{if(B=="hide"){hiddens.hide()}}}};