]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7953 #resolve Verto Communicator - Fixed dialing when typing extension using the...
authorItalo Rossi <italorossib@gmail.com>
Tue, 11 Aug 2015 19:36:38 +0000 (14:36 -0500)
committerItalo Rossi <italorossib@gmail.com>
Tue, 11 Aug 2015 19:36:38 +0000 (14:36 -0500)
html5/verto/verto_communicator/js/controllers.js
html5/verto/verto_communicator/partials/dialpad.html

index 27485979fbfaf61766fbb081d3489236da7714c1..7ba9a3fc20c3779f729ffa1013947eee21d01f87 100644 (file)
@@ -710,10 +710,10 @@ vertoControllers.controller('DialPadController', ['$rootScope', '$scope', '$http
     /**
      * Call to the number in the $rootScope.dialpadNumber.
      */
-    $rootScope.call = function() {
+    $rootScope.call = function(extension) {
       storage.data.onHold = false;
       storage.data.cur_call = 0;
-      
+      $rootScope.dialpadNumber = extension;
       if(!$rootScope.dialpadNumber && storage.data.called_number) {
         $rootScope.dialpadNumber = storage.data.called_number;
         return false;
index 0f21203976c7978ab8dac4496bd7f51cb276fead..3addb72c23f1560dc40b3d50257315b3e5ee6e54 100644 (file)
             </div>
           </div>
           <div class="form-group text-center">
-            <button type="submit" class="btn btn-success btn-fab" ng-click="call()" title="Call Extension">
+            <button type="submit" class="btn btn-success btn-fab" ng-click="call(dialpadNumber)" title="Call Extension">
               <i class="mdi-communication-call"></i>
             </button>
           </div>