Fixed FELIX-3491 Better activity indication when pressing refresh/update bundle buttons 
https://issues.apache.org/jira/browse/FELIX-3491

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1330802 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/resources/OSGI-INF/l10n/bundle.properties b/webconsole/src/main/resources/OSGI-INF/l10n/bundle.properties
index 4d4f592..696504c 100644
--- a/webconsole/src/main/resources/OSGI-INF/l10n/bundle.properties
+++ b/webconsole/src/main/resources/OSGI-INF/l10n/bundle.properties
@@ -242,3 +242,6 @@
 metadata.locale.name=Locale
 metadata.locale.description=If set, this locale forces the localization to use this locale instead of the one requested by the web browser
 
+# https://issues.apache.org/jira/browse/FELIX-3491
+bundles.success.title=Success
+bundles.success.text=Operation completed succesfully.
diff --git a/webconsole/src/main/resources/OSGI-INF/l10n/bundle_bg.properties b/webconsole/src/main/resources/OSGI-INF/l10n/bundle_bg.properties
index bbf41d7..2910a8a 100644
--- a/webconsole/src/main/resources/OSGI-INF/l10n/bundle_bg.properties
+++ b/webconsole/src/main/resources/OSGI-INF/l10n/bundle_bg.properties
@@ -241,3 +241,6 @@
  В противен случай той се избира автоматично в зависимост от настройките на Web Browser-a.
 
 
+# https://issues.apache.org/jira/browse/FELIX-3491
+bundles.success.title=Успех
+bundles.success.text=Операцията е изпълнена успешно
diff --git a/webconsole/src/main/resources/OSGI-INF/l10n/bundle_de.properties b/webconsole/src/main/resources/OSGI-INF/l10n/bundle_de.properties
index 18204f1..8250b56 100644
--- a/webconsole/src/main/resources/OSGI-INF/l10n/bundle_de.properties
+++ b/webconsole/src/main/resources/OSGI-INF/l10n/bundle_de.properties
@@ -243,4 +243,8 @@
 metadata.locale.name=Locale
 metadata.locale.description=Feste Einstellung der Lokalisierung der OSGi \
  Management console. Falls diese Property nicht gesetzt ist, wird die \
- Lokalisierung anhand des Requests eingestellt.
\ No newline at end of file
+ Lokalisierung anhand des Requests eingestellt.
+ 
+# https://issues.apache.org/jira/browse/FELIX-3491
+bundles.success.title=Erfolg
+bundles.success.text=Der Vorgang wurde erfolgreich.
diff --git a/webconsole/src/main/resources/OSGI-INF/l10n/bundle_ru.properties b/webconsole/src/main/resources/OSGI-INF/l10n/bundle_ru.properties
index 3650e6e..dfdcafa 100644
--- a/webconsole/src/main/resources/OSGI-INF/l10n/bundle_ru.properties
+++ b/webconsole/src/main/resources/OSGI-INF/l10n/bundle_ru.properties
@@ -208,3 +208,6 @@
 metadata.locale.name=Локаль
 metadata.locale.description=Идентификатор локали, используемой Панелью управления вместо запрашиваемой браузером.
 
+# https://issues.apache.org/jira/browse/FELIX-3491
+bundles.success.title=Успех
+bundles.success.text=Операция выполнена успешно.
diff --git a/webconsole/src/main/resources/res/ui/bundles.js b/webconsole/src/main/resources/res/ui/bundles.js
index f8532eb..d316b38 100644
--- a/webconsole/src/main/resources/res/ui/bundles.js
+++ b/webconsole/src/main/resources/res/ui/bundles.js
@@ -20,6 +20,7 @@
 var bundlesBody     = false;
 var bundlesTemplate = false;
 var bundleOpError   = false;
+var bundleOpSuccess = false;
 
 function renderData( eventData, filter )  {
 	lastBundleData = eventData;
@@ -116,6 +117,11 @@
 		} else {
 			entrySetupState( b, _tr, id );
 		}
+		if ('refresh' == action || 'update' == action) {
+			bundleOpSuccess.dialog('open');
+			// TODO:
+			
+		}
 	}, 'json');
 	return false;
 }
@@ -218,6 +224,11 @@
 		width   : '80%'
 	});
 	bundleOpError.parent().addClass('ui-state-error');
+	bundleOpSuccess = $('#bundleOpSuccess').dialog({
+		autoOpen: false,
+		modal   : true,
+		width   : '80%'
+	});
 
 	// filter
 	$('.filterApply').click(function() {
diff --git a/webconsole/src/main/resources/templates/bundles.html b/webconsole/src/main/resources/templates/bundles.html
index 0365d39..45982bd 100644
--- a/webconsole/src/main/resources/templates/bundles.html
+++ b/webconsole/src/main/resources/templates/bundles.html
@@ -142,3 +142,4 @@
 </div>
 
 <div id="bundleOpError" class="ui-helper-hidden" title="${bundles.error.title}"><pre>&nbsp;</pre></div>
+<div id="bundleOpSuccess" class="ui-helper-hidden" title="${bundles.success.title}">${bundles.success.text}</div>