Allow loading URLs from links

This commit is contained in:
Ray Schamp 2015-05-06 19:55:28 -04:00
parent 83f2b0fa7e
commit 06e031cdc8
2 changed files with 11 additions and 5 deletions

View file

@ -139,7 +139,13 @@ function sendURLtoFlash(url) {
}
}
$("[data-action='load-url']").submit(function(e) {
$("[data-action='load-url']").click(function(e) {
e.preventDefault();
showPage("editor");
sendURLtoFlash($(this).attr("href"));
});
$(".url-load-form").submit(function(e) {
e.preventDefault();
showPage("editor");
sendURLtoFlash($('input[type="text"]', this).val());