Commit f7625ca0 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge changes Id40eccb3,Ibe5b26e0

* changes:
  Bug 1700690: Separate tags when posting from a tagged entries block
  Bug 1700689: fixed tagged posts "Add" button throwing exception
parents 19c8f025 0967a038
......@@ -7,11 +7,11 @@ var addNewTaggedPostShortcut = (function($) {
var p = $(this).closest('div.shortcut');
var selectedBlog = p.find('select.select').first();
var currentTag = p.find('input.select').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);
document.body.appendChild(myForm);
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);
document.body.appendChild(myForm[0]);
myForm.submit();
});
}
......
......@@ -39,7 +39,7 @@ if (!$blogpost) {
$title = '';
$description = '';
$tags = array($tagselect);
$tags = explode(",", $tagselect);
$checked = '';
$pagetitle = get_string('newblogpost', 'artefact.blog', get_field('artefact', 'title', 'id', $blog));
$focuselement = 'title';
......
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