Untitled diff
14 lines
$(document).ready(function() {
$(document).ready(function() {
$(".custom-dropdown").hover(function() {
$(".custom-dropdown").hover(function() {
$(this).children("ul").slideDown(300)
$(this).children("ul").stop().slideDown(300)
}, function() {
}, function() {
$(this).children("ul").slideUp(300)
$(this).children("ul").stop().slideUp(300)
});
});
$('a[data-method="post"]').click(function(b) {
$('a[data-method="post"]').click(function(b) {
var a = $('<form method="post" action="' + $(this).attr("href") + '"></form>');
var a = $('<form method="post" action="' + $(this).attr("href") + '"></form>');
$("body").append(a);
$("body").append(a);
a.submit();
a.submit();
b.preventDefault();
b.preventDefault();
return false
return false
})
})
});
});