diff --git a/webadmin/src/views/appstore.html b/webadmin/src/views/appstore.html index 9fbb51fb0..a6d280df8 100644 --- a/webadmin/src/views/appstore.html +++ b/webadmin/src/views/appstore.html @@ -64,6 +64,30 @@ + + +
@@ -101,21 +125,7 @@


-
-
-
-

- Missing an app? Let us know. -

- -
{{feedback.error}}
- -
-
-
- Thank You! -
-
+ Missing an app? Let us know.
diff --git a/webadmin/src/views/appstore.js b/webadmin/src/views/appstore.js index 57a0b48cb..5206fd02c 100644 --- a/webadmin/src/views/appstore.js +++ b/webadmin/src/views/appstore.js @@ -46,6 +46,7 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca $scope.feedback.error = error; } else { $scope.feedback.success = true; + $('#feedbackModal').modal('hide'); resetFeedback(); } @@ -53,6 +54,10 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca }); }; + $scope.showFeedbackModal = function () { + $('#feedbackModal').modal('show'); + }; + $scope.activateFeedbackForm = function () { $('#feedbackDescriptionTextarea').focus(); }; @@ -240,7 +245,7 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca refresh(); // setup all the dialog focus handling - ['appInstallModal'].forEach(function (id) { + ['appInstallModal', 'feedbackModal'].forEach(function (id) { $('#' + id).on('shown.bs.modal', function () { $(this).find("[autofocus]:first").focus(); });