felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Passchier (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FELIX-3503) The obr page in the webconsole does not update on refresh
Date Fri, 11 May 2012 11:21:49 GMT

     [ https://issues.apache.org/jira/browse/FELIX-3503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Igor Passchier updated FELIX-3503:
----------------------------------

    Attachment: FELIX-3503.patch
    
> The obr page in the webconsole does not update on refresh
> ---------------------------------------------------------
>
>                 Key: FELIX-3503
>                 URL: https://issues.apache.org/jira/browse/FELIX-3503
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-3.1.8
>         Environment: Felix running on Ubuntu Linux 10.04.3 LTS
> Java version OpenJDK Runtime Environment (IcedTea6 1.9.13) (6b20-1.9.13-0ubuntu1~10.04.1)
> OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
> Browser for webpage: Firefox 12.0 on Windows 7
>            Reporter: Igor Passchier
>              Labels: obr, ui
>         Attachments: FELIX-3503.patch
>
>
> If the Bundle Repositories are refreshed via the webconsole "OSGi Repository", the repository
is refreshed in the felix environment and the new data is send back to the webpage. However,
the new data is not displayed in the webpage, as the reply from felix is ignored in the obr.js
javascript file.
> The patch below will fix this, by inserting the available data from the reply in the
obrData internal datastructurre, before updating the UI.
> ### Eclipse Workspace Patch 1.0
> #P org.apache.felix.webconsole-3.1.8
> Index: src/main/resources/res/ui/obr.js
> ===================================================================
> --- src/main/resources/res/ui/obr.js	(revision 1228192)
> +++ src/main/resources/res/ui/obr.js	(working copy)
> @@ -63,7 +63,12 @@
>          $.post(pluginRoot, {
>              'action' : action,
>              'url'    : url
> -        }, renderData, 'json');
> +        }, function(data) {
> +        	for (var par in data) {
> +        		obrData[par]=data[par];
> +        	};
> +        	renderData();
> +        	}, 'json');
>      }
>  }
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message