mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 16:58:21 -05:00
Confirm suggest title if they already entered a title
This commit is contained in:
@@ -694,6 +694,10 @@ function fetch_title() {
|
||||
var status = url_field.find(".title-status");
|
||||
var url = $("#url").val();
|
||||
if (url) {
|
||||
if ($('form#newlink textarea[name="title"]').val() &&
|
||||
!confirm("This will replace your existing title, proceed?")) {
|
||||
return
|
||||
}
|
||||
status.show().text(reddit.status_msg.loading);
|
||||
error.hide();
|
||||
$.request("fetch_title", {url: url});
|
||||
|
||||
Reference in New Issue
Block a user