2011-08-24 20:16:44 +00:00
|
|
|
$(document).ready(function() {
|
|
|
|
$('#bookmark_add_submit').click(addBookmark);
|
|
|
|
});
|
|
|
|
|
|
|
|
function addBookmark(event) {
|
|
|
|
var url = $('#bookmark_add_url').val();
|
|
|
|
var title = $('#bookmark_add_title').val();
|
|
|
|
var tags = $('#bookmark_add_tags').val();
|
|
|
|
$.ajax({
|
|
|
|
url: 'ajax/addBookmark.php',
|
2011-10-08 11:54:45 +00:00
|
|
|
data: 'url=' + encodeURI(url) + '&title=' + encodeURI(title) + '&tags=' + encodeURI(tags),
|
2011-08-24 20:16:44 +00:00
|
|
|
success: function(data){
|
2012-02-21 22:08:57 +00:00
|
|
|
window.close();
|
2011-08-24 20:16:44 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|