Cancel URL button function if URL is empty.
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user