Skip to content

Commit

Permalink
JS cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Nov 13, 2018
1 parent 8e7bad8 commit dc6dd8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/capybara/spec/public/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,25 +159,25 @@ $(function() {
$(this).attr('confirmed', 'false');
}
}
})
});
$('#delayed-page-change').click(function() {
setTimeout(function() {
window.location.pathname = '/with_html'
}, 500)
})
});
$('#with-key-events').keydown(function(e){
$('#key-events-output').append('keydown:'+e.which+' ')
});
$('#disable-on-click').click(function(e){
var input = this
var input = this;
setTimeout(function() {
input.disabled = true;
}, 500)
})
});
$('#set-storage').click(function(e){
sessionStorage.setItem('session', 'session_value');
localStorage.setItem('local', 'local value');
})
});
$('#multiple-file').change(function(e){
$('body').append($('<p class="file_change"input_event_triggered">File input changed</p>'));
})
Expand Down
2 changes: 1 addition & 1 deletion lib/capybara/spec/views/frame_child.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>This is the child frame title</title>
<script>
function closeWin() {
var iframe = window.parent.document.getElementById('childFrame')
var iframe = window.parent.document.getElementById('childFrame');
iframe.parentNode.removeChild(iframe)
}
</script>
Expand Down

0 comments on commit dc6dd8e

Please sign in to comment.