diff options
Diffstat (limited to 'js/menu.js')
-rw-r--r-- | js/menu.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/js/menu.js b/js/menu.js index e4453599c..0591fa828 100644 --- a/js/menu.js +++ b/js/menu.js @@ -546,7 +546,12 @@ var News = News || {}; * @param id the id */ Menu.prototype._edit = function(type, id){ - // TODO: + var $node = this._getNodeFromTypeAndId(type, id); + var name = $node.children('.title').html(); + var id = $node.data('id'); + $('#changefolder_dialog').find('input[type=text]').val(name); + $('#changefolder_dialog').find('input[type=hidden]').val(id); + $('#changefolder_dialog').dialog('open'); }; /** |