Procházet zdrojové kódy

Removes default SIP number.

j8
paweldomas před 11 roky
rodič
revize
f61accc812
2 změnil soubory, kde provedl 2 přidání a 4 odebrání
  1. 2
    3
      app.js
  2. 0
    1
      config.js

+ 2
- 3
app.js Zobrazit soubor

@@ -1351,8 +1351,7 @@ $(document).bind('fatalError.jingle',
1351 1351
 function callSipButtonClicked()
1352 1352
 {
1353 1353
     $.prompt('<h2>Enter SIP number</h2>' +
1354
-        '<input id="sipNumber" type="text"' +
1355
-        ' value="' + config.defaultSipNumber + '" autofocus>',
1354
+        '<input id="sipNumber" type="text" value="" autofocus>',
1356 1355
         {
1357 1356
             persistent: false,
1358 1357
             buttons: { "Dial": true, "Cancel": false},
@@ -1366,7 +1365,7 @@ function callSipButtonClicked()
1366 1365
                 if (v)
1367 1366
                 {
1368 1367
                     var numberInput = document.getElementById('sipNumber');
1369
-                    if (numberInput.value)
1368
+                    if (numberInput.value && numberInput.value.length)
1370 1369
                     {
1371 1370
                         connection.rayo.dial(
1372 1371
                             numberInput.value, 'fromnumber', roomName);

+ 0
- 1
config.js Zobrazit soubor

@@ -16,7 +16,6 @@ var config = {
16 16
     minChromeExtVersion: '0.1', // Required version of Chrome extension
17 17
     enableRtpStats: true, // Enables RTP stats processing
18 18
     openSctp: true, // Toggle to enable/disable SCTP channels
19
-    //defaultSipNumber: '20669', //Default SIP number used in call dialog
20 19
 //    channelLastN: -1, // The default value of the channel attribute last-n.
21 20
 //    useRtcpMux: true,
22 21
 //    useBundle: true,

Načítá se…
Zrušit
Uložit