diff options
Diffstat (limited to 'view')
-rw-r--r-- | view/js/autocomplete.js | 2 | ||||
-rwxr-xr-x | view/tpl/direntry.tpl | 12 | ||||
-rwxr-xr-x | view/tpl/event_form.tpl | 2 |
3 files changed, 14 insertions, 2 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index 86847cb35..b93cc16b3 100644 --- a/view/js/autocomplete.js +++ b/view/js/autocomplete.js @@ -77,7 +77,7 @@ function editor_replace(item) { // 16 chars is also the minimum length in the backend (otherwise it's interpreted as a local id). if(id.length > 16) id = item.id.substring(0,16); - return '$1$2'+item.nick.replace(' ','') + '+' + id; + return '$1$2'+item.nick.replace(' ','') + '+' + id + ' '; } function basic_replace(item) { diff --git a/view/tpl/direntry.tpl b/view/tpl/direntry.tpl index cdc6f1f97..6ba86a085 100755 --- a/view/tpl/direntry.tpl +++ b/view/tpl/direntry.tpl @@ -15,6 +15,18 @@ <div class='contact-info'> <div class="contact-name" id="directory-name-{{$entry.id}}" ><a href='{{$entry.profile_link}}' >{{$entry.name}}</a>{{if $entry.online}} <i class="icon-asterisk online-now" title="{{$entry.online}}"></i>{{/if}}</div> +{{if $entry.rateme}} +<div id="dir-rating-wrapper-{{$entry.id}}" style="float:right; width: 20%;"> +62 ratings<br /> +<div id="dir-rating-slider-{{$entry.id}}" class="dir-slider" style="height: 32px; margin-right:10px;"> +<input id="dir-rating-range-{{$entry.id}}" type="text" value="0" name="fake-rating-{{$entry.id}}" style="display: none;"> +</div> +</div> +<div class="clear"></div> +<script> +$("#dir-rating-range-{{$entry.id}}").jRange({ from: -10, to: 10, step: 1, width:'100%', showLabels: false, showScale: true, scale : [ '-10','-5','0','5','10' ], onstatechange: function(v) { $("#contact-rating-mirror").val(v); } }); +</script> +{{/if}} {{if $entry.public_forum}} <div class="contact-forum"> {{$entry.forum_label}} @{{$entry.nickname}}+ diff --git a/view/tpl/event_form.tpl b/view/tpl/event_form.tpl index a4717415e..2479068f3 100755 --- a/view/tpl/event_form.tpl +++ b/view/tpl/event_form.tpl @@ -41,7 +41,7 @@ {{if $catsenabled}} <div id="event-category-wrap"> - <input name="category" id="event-category" type="text" placeholder="{{$placeholdercategory}}" value="{{$category}}" class="event-cats" style="display: block;" /> + <input name="category" id="event-category" type="text" placeholder="{{$placeholdercategory}}" value="{{$category}}" class="event-cats" style="display: block;" data-role="tagsinput" /> </div> {{/if}} |