clean html

This commit is contained in:
Sam 2014-12-09 12:12:11 +11:00
parent 8b9c7da571
commit 993d60f9fb
1 changed files with 6 additions and 4 deletions

View File

@ -43,7 +43,7 @@ var renderPage = Handlebars.compile(
var renderToolbar = Handlebars.compile(
"<ul class='toolbar'>" +
"{{#each this}}" +
"<li ><a {{#if selected}}class='selected'{{/if}} data-group-id='{{groupId}}'><img src='{{src}}' class='emoji'></a></li>" +
"<li><a {{#if selected}}class='selected'{{/if}} data-group-id='{{groupId}}'><img src='{{src}}' class='emoji'></a></li>" +
"{{/each}}" +
"</ul>"
);
@ -72,7 +72,10 @@ var bindEvents = function(){
return false;
}).hover(function(){
var title = $(this).attr('title');
$('.emoji-modal .info').html("<img src='" + Discourse.Emoji.urlFor(title) + "' class='emoji'> <span>:" + title + ":<span>");
$('.emoji-modal .info')
.html("<img src='" + Discourse.Emoji.urlFor(title) +
"' class='emoji'> <span>:" + title + ":<span>");
},function(){
$('.emoji-modal .info').html("");
});
@ -80,9 +83,8 @@ var bindEvents = function(){
$('.emoji-modal .toolbar a').click(function(){
var page = parseInt($(this).data('group-id'));
render(page,0);
return false;
});
};
var perRow = 10, perPage=60;