mirror of
https://github.com/owncloud/bookmarks.git
synced 2024-12-10 12:24:09 +01:00
15 lines
357 B
JavaScript
15 lines
357 B
JavaScript
$(document).ready(function() {
|
|
$('#bookmark_add_submit').click(addBookmark);
|
|
});
|
|
|
|
function addBookmark(event) {
|
|
var url = $('#bookmark_add_url').val();
|
|
var tags = $('#bookmark_add_tags').val();
|
|
$.ajax({
|
|
url: 'ajax/addBookmark.php',
|
|
data: 'url=' + encodeURI(url) + '&tags=' + encodeURI(tags),
|
|
success: function(data){
|
|
window.close();
|
|
}
|
|
});
|
|
} |