From 6b63ab1c3240e41dd77ef2df312618f3e9cf0097 Mon Sep 17 00:00:00 2001 From: Pavel Zuna Date: Tue, 17 Aug 2010 14:26:36 -0400 Subject: [PATCH] Clean ipa.js and make it load plugin meta-data over JSON-RPC. What it means? Well, first I removed some development control variables from ipa.js. Namely useSampleData and sizelimit. I moved useSampleData to the top of index.xhtml. This way we won't forget about it when we don't need it anymore. sizelimit has nothing to do in ipa.js and be hardcoded for ALL commands! Some don't have this parameter and could fail. Since ipa_init now loads meta-data over JSON-RPC, we need to wait for it to finish its job. That's why I put a second parameter to ipa_init: on_win. ipa_init will call on_win when all data is loaded properly and we can start building the page. --- install/static/index.xhtml | 17 ++++++++-- install/static/ipa.js | 63 +++++++++++++++++++------------------- 2 files changed, 46 insertions(+), 34 deletions(-) diff --git a/install/static/index.xhtml b/install/static/index.xhtml index b22a5bacc..e94e6d18e 100644 --- a/install/static/index.xhtml +++ b/install/static/index.xhtml @@ -7,6 +7,14 @@ + + + @@ -49,8 +60,8 @@