nextcloud/apps/bookmarks/js/addBm.js

16 lines
373 B
JavaScript
Raw Normal View History

$(document).ready(function() {
$('#bookmark_add_submit').click(addBookmark);
});
function addBookmark(event) {
var url = $('#bookmark_add_url').val();
var tags = $('#bookmark_add_tags').val();
$.ajax({
2012-06-11 01:38:26 +04:00
type: 'POST',
url: 'ajax/addBookmark.php',
2012-02-22 19:04:17 +04:00
data: 'url=' + encodeURI(url) + '&tags=' + encodeURI(tags),
success: function(data){
window.close();
}
});
}