Skip to content
Snippets Groups Projects
Commit af30e6b5 authored by Simon Lejeune's avatar Simon Lejeune
Browse files

[MERGE] saas-4

bzr revid: sle@openerp.com-20140423161155-im8b5j0l7avrgbts
parents a17bb46b 252be1b9
Branches
Tags
No related merge requests found
......@@ -129,11 +129,16 @@ $(document).ready(function () {
cacheResults: true
}
});
// Note: Adding event handler of whitespaceKeyDown event.
$("input.load_tags").bind("whitespaceKeyDown",function () {
// Adds: create tags on space + blur
$("input.load_tags").on('whitespaceKeyDown blur', function () {
$(this).textext()[0].tags().addTags([ $(this).val() ]);
$(this).val("");
});
$("input.load_tags").on('isTagAllowed', function(e, data) {
if (_.indexOf($(this).textext()[0].tags()._formData, data.tag) != -1) {
data.result = false;
}
});
}
if ($('textarea.load_editor').length) {
......
......@@ -80,7 +80,7 @@
<div t-foreach="notifications or []" t-as="notification" class="alert alert-success alert-dismissable">
<button type="button" class="close notification_close" t-att-id="notification.id" data-dismiss="alert" aria-hidden="true">&amp;times;</button>
<div t-field="notification.body"/>
<a t-attf-href="/forum/#{ slug(forum) }/user/#{ slug(user) }#badges" class="fa fa-arrow-right">View Your Badges</a>
<a t-attf-href="/forum/#{ slug(forum) }/user/#{ user.id }#badges" class="fa fa-arrow-right">View Your Badges</a>
</div>
<t t-raw="0"/>
</div>
......@@ -414,7 +414,7 @@
</div>
<div style="margin-left: 95px;">
<h1 class="mt0">
<span t-field="question.name"/>
<a t-attf-href="/forum/#{ slug(forum) }/question/#{ slug(question) }" t-field="question.name"/>
<span t-if="not question.active"><b> [Deleted]</b></span>
<span t-if="question.state == 'close'"><b> [Closed]</b></span>
</h1>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment