send title when adding link

This commit is contained in:
Sanj 2012-12-26 14:52:42 +05:30
parent cf9c26e96a
commit 04b9a040df

View File

@ -111,7 +111,7 @@ $(function() {
$this.attr("disabled", "disabled");
var title = prompt("Please enter a title for the link");
var url = "/mediagallery/add_link/" + GALLERY_ID;
$.get(url, {'url': url}, function(data) {
$.get(url, {'url': url, 'title': title}, function(data) {
$this.removeAttr("disabled");
var $ul = $('#links');
var $li = $('<li />')