Skip to content

Commit

Permalink
Merge branch 'release/openvbx_1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
chadsmith committed Nov 3, 2011
2 parents 1ffb0b0 + a9c1bbe commit e097074
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions applets/areacode/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ $(function() {

$('.areacode-applet input.keypress').live('keyup', function(event) {
var row = $(this).closest('tr');
$('input[name^="keys"]', row).attr('name', 'keys['+$(this).val()+']');
$('input[name^="responses"]', row).attr('name', 'responses['+$(this).val()+']');
$('input[name^="keys"]', row).attr('name', 'keys[' + $(this).val() + ']');
$('input[name^="responses"]', row).attr('name', 'responses[' + $(this).val() + ']');
});

$('.areacode-applet .action.add').live('click', function(event) {
Expand Down
8 changes: 4 additions & 4 deletions applets/areacode/twiml.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
$areacode = $matches[1];
}

$response = new Response();
$response = new TwimlResponse;

if(!empty($areacode) && array_key_exists($areacode, $menu_items) && !empty($menu_items[$areacode]))
$response->addRedirect($menu_items[$areacode]);
$response->redirect($menu_items[$areacode]);
elseif(!empty($invalid_option))
$response->addRedirect($invalid_option);
$response->redirect($invalid_option);

$response->Respond();
$response->respond();
4 changes: 2 additions & 2 deletions applets/state/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ $(function() {

$('.state-applet input.keypress').live('keyup', function(event) {
var row = $(this).closest('tr');
$('input[name^="keys"]', row).attr('name', 'keys['+$(this).val()+']');
$('input[name^="responses"]', row).attr('name', 'responses['+$(this).val()+']');
$('input[name^="keys"]', row).attr('name', 'keys[' + $(this).val() + ']');
$('input[name^="responses"]', row).attr('name', 'responses[' + $(this).val() + ']');
});

$('.state-applet .action.add').live('click', function(event) {
Expand Down
8 changes: 4 additions & 4 deletions applets/state/twiml.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
if(!empty($_REQUEST['FromState']))
$state = strtolower($_REQUEST['FromState']);

$response = new Response();
$response = new TwimlResponse;

if(!empty($state) && array_key_exists($state, $menu_items) && !empty($menu_items[$state]))
$response->addRedirect($menu_items[$state]);
$response->redirect($menu_items[$state]);
elseif(!empty($invalid_option))
$response->addRedirect($invalid_option);
$response->redirect($invalid_option);

$response->Respond();
$response->respond();
6 changes: 3 additions & 3 deletions applets/user/twiml.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
}
}

$response = new Response();
$response = new TwimlResponse;

$next = AppletInstance::getDropZoneUrl($is_user ? 'is_user' : 'not_user');
if(!empty($next))
$response->addRedirect($next);
$response->redirect($next);

$response->Respond();
$response->respond();

0 comments on commit e097074

Please sign in to comment.