Allow loading URLs from links
This commit is contained in:
parent
83f2b0fa7e
commit
06e031cdc8
2 changed files with 11 additions and 5 deletions
|
@ -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());
|
||||
|
|
Reference in a new issue