From ca80736ee195ee65a3ce8f3aa1f162abf61d86a9 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 4 Jul 2016 17:31:52 +0200 Subject: [PATCH] add title to the pad removal button --- customize.dist/main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/customize.dist/main.js b/customize.dist/main.js index 3f326117d..8bc0e6af2 100644 --- a/customize.dist/main.js +++ b/customize.dist/main.js @@ -51,6 +51,7 @@ define([ var name = padTypes[uri.path()]; var title = pad.title || uri.parts.hash.slice(0,8); + var shortTitle = truncateTitle(pad.title, 48); var date = new Date(pad.atime).toLocaleDateString(); var created = new Date(pad.ctime).toLocaleDateString(); @@ -60,13 +61,14 @@ define([ } var id = 'pad-'+index; + $tbody.append('' + '' + name + '' + //'' + title + '' + - '' + truncateTitle(pad.title, 48) + '' + + '' + shortTitle + '' + '' + created + '' + // created '' + date + '' + - '✖'+ + '✖'+ ''); var $row = $('#'+id);