From 853981b3b0964ee9de34d9afe90a811ef8086b9d Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Thu, 2 Aug 2012 13:45:02 +0100 Subject: [PATCH] Graceful & discreet reload on not being ready If for some reason the createNewCMInstance function isn't ready & available, reload the iframe containing file-control.php which works with the issue by giving more time and leave a note in the console.log. Also move everything to do with the the loading process into the successful part of the if condition. --- lib/file-control.php | 51 ++++++++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 23 deletions(-) diff --git a/lib/file-control.php b/lib/file-control.php index 636d84e..edf017c 100644 --- a/lib/file-control.php +++ b/lib/file-control.php @@ -209,32 +209,37 @@ if ($_GET['action']=="save") {