1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2025-02-20 17:54:25 +01:00

Only edit 1 bookmark at the time

This commit is contained in:
Brice Maron 2012-09-02 15:53:33 +00:00
parent 19925df098
commit 8fde82f956
2 changed files with 4 additions and 2 deletions

View File

@ -18,7 +18,7 @@
type: 'POST',
url: $(this).attr('action'),
data: $(this).serialize(),
success: function(data){
success: function(data){
if(data.status == 'success'){
base.options['on_success'](data);
} else { // On failure

View File

@ -227,9 +227,11 @@ function delBookmark(event) {
}
function editBookmark(event) {
if($('.bookmark_single_form').length){
$('.bookmark_single_form .reset').click();
}
var record = $(this).parent().parent();
bookmark = record.data('record');
//createEditDialog(bookmark);
html = tmpl("item_form_tmpl", bookmark);
record.after(html);