Rewrite the server_add to have the server format the selection when a branch is opened. Sub trees re only retrieved when the branch is opened. Changed the

start task processing to fill in any subtrees that are selected, but were never expanded on the client.  Added the loading icon.

Signed-off-by: Bharat Mediratta <bharat@menalto.com>
This commit is contained in:
Tim Almdal
2009-06-05 03:13:14 +08:00
committed by Bharat Mediratta
parent 13b12f410e
commit e1ce3196f4
5 changed files with 116 additions and 42 deletions
@@ -18,6 +18,10 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class server_add_theme_Core {
static function head($theme) {
return html::script("modules/server_add/js/server_add.js") . "\n";;
}
static function admin_head($theme) {
$head = array();
if (strpos(Router::$current_uri, "admin/server_add") !== false) {
@@ -30,7 +34,7 @@ class server_add_theme_Core {
$head[] = html::script("lib/jquery.autocomplete.js");
$head[] = html::script("modules/server_add/js/admin.js");
}
return implode("\n", $head);
}
}