1
0

Cancel URL button function if URL is empty.

This commit is contained in:
Matthias Mees
2014-01-04 23:30:03 +01:00
parent f20ef8cc67
commit 9011d62bf4

@ -98,12 +98,13 @@ window.log = function f(){ log.history = log.history || []; log.history.push(arg
serendipity.wrapSelectionWithLink = function(txtarea) {
var my_link = prompt("Enter URL:","http://");
if (getSelection($(txtarea) ) == "") {
var my_desc = prompt("Enter Description", '');
if (my_link) {
if (getSelection($(txtarea) ) == "") {
var my_desc = prompt("Enter Description", '');
}
var my_title = prompt("Enter title/tooltip:", "");
}
var my_title = prompt("Enter title/tooltip:", "");
html_title = "";
if (my_title != "" && my_title != null) {