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

Fix non closing dialog

This commit is contained in:
Brice Maron 2012-08-13 20:32:52 +00:00
parent 269e09ff9e
commit 69092b75ca

View File

@ -172,8 +172,7 @@ function getBookmarks() {
function createEditDialog(record){ function createEditDialog(record){
dialog_html = $('#edit_dialog').html(); var oc_dialog= $('#edit_dialog form').clone().dialog({
var oc_dialog= $(dialog_html).dialog({
width : 620, width : 620,
height: 350, height: 350,
title: t('bookmark', 'Edit bookmark'), title: t('bookmark', 'Edit bookmark'),
@ -185,7 +184,7 @@ function createEditDialog(record){
$('.ui-dialog').bookmark_dialog({ $('.ui-dialog').bookmark_dialog({
on_success: function(){ on_success: function(){
dialog.dialog('destroy').remove(); oc_dialog.dialog('destroy').remove();
filterTagsChanged(); filterTagsChanged();
}, },
record: record record: record