js slideToggle problem with defining loaded state
This commit is contained in:
parent
afda2f3f9b
commit
ef3ba4e9bf
|
@ -8,8 +8,11 @@ $(function() {
|
||||||
$(this).data("loading", true);
|
$(this).data("loading", true);
|
||||||
var $parent = $(this).parent();
|
var $parent = $(this).parent();
|
||||||
|
|
||||||
if ($parent.find('.srtContainer').length > 0) {
|
var $container = $parent.find('.srtContainer');
|
||||||
$parent.find('.srtContainer').slideToggle();
|
if ($container.length > 0) {
|
||||||
|
// alert("hi");
|
||||||
|
$(this).data("loading", false);
|
||||||
|
$container.is(":visible") ? $container.hide() : $container.show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user