diff -r a6c61f6ea350 -r 48bcd0bbc1ab mypackage_wrt/Main.js --- a/mypackage_wrt/Main.js Wed May 05 11:52:23 2010 +0100 +++ b/mypackage_wrt/Main.js Thu May 06 13:01:45 2010 +0100 @@ -14,6 +14,7 @@ // Reference to the WRTKit user interface manager and main view. var uiManager; +var debuglog=null; // Global settings / URLs and such @@ -30,6 +31,7 @@ var symbianOrgNewThreadUrl = symbianOrgBaseUrl+"/forum/newthread.php?"; var symbianOrgNewReplyUrl = symbianOrgBaseUrl+"/forum/newreply.php?"; var symbianOrgLoginUrl = symbianOrgBaseUrlSsl+"/main/user_profile/login.php"; +var symbianOrgLogoutUrl = symbianOrgBaseUrl+"/action/logoutAction.php"; var symbianOrgLoginUsernameField = "username"; var symbianOrgLoginPasswordField = "password"; var forumUsername = null; @@ -56,7 +58,7 @@ var wikiBaseUrl = symbianOrgBaseUrl+"/wiki/index.php"; // Update variables -var myversion = "0.2a"; +var myversion = "0.3"; var versionWikiPageUrl = wikiBaseUrl + "/My_Package_Widget"; var versionWikiPageString = "Current widget version is ["; var downloadUrl = "http://tiny.symbian.org/mypackage"; @@ -114,8 +116,10 @@ // Called from the onload event handler to initialize the widget. function init() { - - // set tab-navigation mode and show softkeys + debuglog= new Logger(); + debuglog.level=debuglog.LOG_LEVEL_DEBUG; + + // set tab-navigation mode and show softkeys // (only if we are in the WRT environment) if (window.widget) { widget.setNavigationEnabled(false); @@ -313,8 +317,9 @@ if ( loginInitiated ) { login(loginInitiatedCallback); + bugzilla.update(firstboot); } - bugzilla.update(firstboot); + login(bugzilla.update(firstboot)); } // Opens a URL in a separate browser window