tagit fix and ui
This commit is contained in:
@ -93,8 +93,14 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
//Stop tags containing space.
|
//Stop tags containing space.
|
||||||
if(keyCode === 32) {
|
if(keyCode === 32) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
var el = $('.ui-widget-content:focus');
|
||||||
|
|
||||||
$('.autocomplete_tags').tagit('createTag', $(this).val());
|
//Find the correct element in a page with multiple tagit input boxes.
|
||||||
|
$('.autocomplete_tags').each(function(_,n){
|
||||||
|
if (n.parentNode.contains(el[0])){
|
||||||
|
$(n.parentNode).find('.autocomplete_tags').tagit('createTag', el.val());
|
||||||
|
}
|
||||||
|
});
|
||||||
$(this).autocomplete('close');
|
$(this).autocomplete('close');
|
||||||
} else if (keyCode === 9) {
|
} else if (keyCode === 9) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
@ -37,7 +37,7 @@ class CommentListTheme extends Themelet
|
|||||||
|
|
||||||
$page->set_title("Comments");
|
$page->set_title("Comments");
|
||||||
$page->set_heading("Comments");
|
$page->set_heading("Comments");
|
||||||
$page->add_block(new Block("Navigation", $nav, "left"));
|
$page->add_block(new Block("Navigation", $nav, "left", 0));
|
||||||
$this->display_paginator($page, "comment/list", null, $page_number, $total_pages);
|
$this->display_paginator($page, "comment/list", null, $page_number, $total_pages);
|
||||||
|
|
||||||
// parts for each image
|
// parts for each image
|
||||||
|
@ -6,5 +6,6 @@
|
|||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
text-align: justify;
|
text-align: left;
|
||||||
|
margin: 0 10px 10px 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user