]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7945 [Verto-Communicator] #resolve Use angular-prompt to ask the user to enter...
authorJoão Mesquita <jmesquita@indicium.com.ar>
Sun, 23 Aug 2015 01:49:40 +0000 (22:49 -0300)
committerItalo Rossi <italorossib@gmail.com>
Mon, 24 Aug 2015 22:58:11 +0000 (19:58 -0300)
html5/verto/verto_communicator/js/controllers.js

index 15558d84702044b79a69c5cf4883028ee121c92f..4f74661f626961c46b153bfc9698cc82fae0bac9 100644 (file)
@@ -462,9 +462,9 @@ vertoControllers.controller('MainController', ['$scope', '$rootScope',
 
 
 vertoControllers.controller('ChatController', ['$scope', '$rootScope', '$http',
-  '$location', '$anchorScroll', '$timeout', 'toastr', 'verto', 'storage',
+  '$location', '$anchorScroll', '$timeout', 'toastr', 'verto', 'storage', 'prompt',
   function($scope, $rootScope, $http, $location, $anchorScroll, $timeout,
-    toastr, verto, storage) {
+    toastr, verto, storage, prompt) {
     console.debug('Executing ChatController.');
 
     function scrollToChatBottom() {
@@ -643,8 +643,15 @@ vertoControllers.controller('ChatController', ['$scope', '$rootScope', '$http',
 
     $scope.confBanner = function(memberID) {
       console.log('$scope.confBanner');
-      var text = 'New Banner';
-      verto.data.conf.banner(memberID, text);
+      prompt({
+        title: 'Participant banner',
+        message: 'What would you like the banner to say?',
+        input: true,
+        label: 'Text',
+        value: 'New text'
+      }).then(function(text){
+        verto.data.conf.banner(memberID, text);
+      });
     };
 
     $scope.confVolumeDown = function(memberID) {