mirror of
https://github.com/owncloud/bookmarks.git
synced 2024-12-01 05:24:11 +01:00
Allow adding bookmark with enter fix #139
This commit is contained in:
parent
3b4c5d05e4
commit
193aade77b
@ -8,7 +8,7 @@ var bookmark_view = 'image';
|
||||
$(document).ready(function() {
|
||||
$('.centercontent').click(clickSideBar);
|
||||
$('#view_type input').click(clickSwitchView);
|
||||
$('#bookmark_add_submit').click(addBookmark);
|
||||
$('#add_form').submit(addBookmark);
|
||||
|
||||
// $('#bm_import_submit').click(attachSettingEvent);
|
||||
$('#bm_import').change(attachSettingEvent);
|
||||
@ -193,6 +193,7 @@ function createEditDialog(record){
|
||||
}
|
||||
|
||||
function addBookmark(event) {
|
||||
event.preventDefault();
|
||||
url = $('#add_url').val();
|
||||
$('#add_url').val('');
|
||||
bookmark = { url: url, description:'', title:''};
|
||||
|
@ -9,9 +9,9 @@
|
||||
?>
|
||||
<input type="hidden" id="bookmarkFilterTag" value="<?php echo $_['req_tag']; ?>" />
|
||||
<div id="controls">
|
||||
<input type="text" id="add_url" value="" placeholder="<?php echo $l->t('Address'); ?>"/>
|
||||
<form id="add_form"><input type="text" id="add_url" value="" placeholder="<?php echo $l->t('Address'); ?>"/>
|
||||
<input type="submit" value="<?php echo $l->t('Add bookmark'); ?>" id="bookmark_add_submit" />
|
||||
|
||||
</form>
|
||||
<div id="view_type">
|
||||
<input type="button" class="list" value="<?php echo $l->t('List')?>" />
|
||||
<input type="button" class="image" style="display:none" value="<?php echo $l->t('Image')?>" />
|
||||
|
Loading…
Reference in New Issue
Block a user