Commit 81d85da6 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic
Browse files

Bug 1700689: fixed tagged posts "Add" button throwing exception

Add button functionality got broken when we removed Mochikit


Change-Id: Ibe5b26e0f314a6a69f0dee8d9d6b672fafbdb5d2
parent 4b4deb91
......@@ -7,11 +7,11 @@ var addNewTaggedPostShortcut = (function($) {
var p = $(this).closest('div.shortcut');
var selectedBlog = p.find('').first();
var currentTag = p.find('').first();
var BlogIDInput = $('<input>', {'name': 'blog', 'type': 'text', 'value': selectedBlog.value});
var TagInput = $('<input>', {'name': 'tagselect', 'type': 'text', 'value': currentTag.value});
var myForm = $('<form>', {'action': config.wwwroot + 'artefact/blog/post.php', 'method': 'POST'})
.append(BlogIDInput, TagInput);
var BlogIDInput = $('<input>', {'name': 'blog', 'type': 'text', 'value': selectedBlog[0].value});
var TagInput = $('<input>', {'name': 'tagselect', 'type': 'text', 'value': currentTag[0].value});
var myForm = $('<form>', {'action': config.wwwroot + 'artefact/blog/post.php', 'method': 'POST'});
myForm.append(BlogIDInput[0], TagInput);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment