[-] BO : fix bug #PSTEST-1079 - product supplier page accordion is initialized too early if page loading is slow, resizing necessary
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14247 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
54aa99007e
commit
3254fbc114
1 file changed
+5
-1
@@ -197,7 +197,11 @@
|
|||||||
// @TODO: a better way to fix the accordion wrong size bug when the selected page is this page
|
// @TODO: a better way to fix the accordion wrong size bug when the selected page is this page
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$('#suppliers_accordion').accordion();
|
$('#suppliers_accordion').accordion();
|
||||||
}, 500);
|
// If one second was not enough to display page, another resize is needed
|
||||||
|
setTimeout(function() {
|
||||||
|
$('#suppliers_accordion').accordion('resize');
|
||||||
|
}, 3000);
|
||||||
|
}, 1000);
|
||||||
|
|
||||||
// Resize the accordion once the page is visible because of the bug with accordions initialized
|
// Resize the accordion once the page is visible because of the bug with accordions initialized
|
||||||
// inside a display:none block not having the correct size.
|
// inside a display:none block not having the correct size.
|
||||||
|
|||||||
Reference in new issue
Block a user