Skip to content

Commit

Permalink
Relates to #259 #281
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Tuttle committed Sep 27, 2015
1 parent a60a198 commit c85b785
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dashboard/dash.js
Expand Up @@ -24,14 +24,14 @@ $(function(){
$(".resource .reqMethod").on('change', function(){
var resource = $(this).closest('.resource');
var method = resource.find('.reqMethod option:checked').html();
if (method === 'GET' || method === 'DELETE'){
if (method === 'GET' || method === 'DELETE' || method == 'OPTIONS'){
resource.find('.reqBody').hide('fast');
resource.find('.queryParams').show('fast');
resource.find('.queryParams');
}else{
var args = window.taffy.resources[resource.data('beanName')][method.toLowerCase()];
var ta = resource.find('.reqBody').show('fast').find('textarea');
ta.val(JSON.stringify(args, null, 3));
resource.find('.queryParams').hide('fast').find('input').val('');
resource.find('.queryParams').find('input').val('');
}
});

Expand Down

0 comments on commit c85b785

Please sign in to comment.