Skip to content

Commit

Permalink
add slow to various jQuery hide/shows
Browse files Browse the repository at this point in the history
  • Loading branch information
atutorlangs committed Oct 21, 2013
1 parent 2553b7e commit be304e5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
function remove_module(module)
{
jQuery.post("'.AT_BASE_HREF.'move_module.php", { "remove":module, "from":"course_index" }, function(data) {});
jQuery("div[id=\""+module.replace(/\//g,"-")+"\"]").remove();
jQuery("div[id=\""+module.replace(/\//g,"-")+"\"]").hide("slow");
}
//-->
</script>
Expand Down
4 changes: 2 additions & 2 deletions jscripts/ATutorCourse.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ ATutor.course = ATutor.course || {};
if (effect) {
jQuery("#side-menu").slideUp("slow");
} else {
jQuery("#side-menu").hide();
jQuery("#side-menu").hide('slow');
}

ATutor.setcookie("side-menu", "none", 1);
Expand All @@ -101,7 +101,7 @@ ATutor.course = ATutor.course || {};
if (effect) {
jQuery("#side-menu").slideDown("slow");
} else {
jQuery("#side-menu").show();
jQuery("#side-menu").show('slow');
}
ATutor.setcookie("side-menu", "", 1);
};
Expand Down
2 changes: 1 addition & 1 deletion mods/_standard/student_tools/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
function remove_module(module)
{
jQuery.post("'.AT_BASE_HREF.'move_module.php", { "remove":module, "from":"student_tools" }, function(data) {});
jQuery("div[id=\""+module.replace(/\//g,"-")+"\"]").remove();
jQuery("div[id=\""+module.replace(/\//g,"-")+"\"]").hide("slow");
}
</script>
Expand Down

0 comments on commit be304e5

Please sign in to comment.