[uifixes]

This commit is contained in:
Rushabh Mehta 2013-05-24 17:33:45 +05:30
parent 32835a65b3
commit 09811d99ff
4 changed files with 6 additions and 6 deletions

View file

@ -266,7 +266,7 @@ function prettyDate(time){
day_diff < 7 && day_diff + " days ago" ||
day_diff < 31 && Math.ceil( day_diff / 7 ) + " weeks ago" ||
day_diff < 365 && Math.ceil( day_diff / 30) + " months ago" ||
"more than " + Math.floor( day_diff / 365 ) + " year(s) ago";
"> " + Math.floor( day_diff / 365 ) + " year(s) ago";
}
// If jQuery is included in the page, adds a jQuery plugin to handle it as well

View file

@ -25,7 +25,7 @@ function prettyDate(time){
day_diff < 7 && day_diff + " days ago" ||
day_diff < 31 && Math.ceil( day_diff / 7 ) + " weeks ago" ||
day_diff < 365 && Math.ceil( day_diff / 30) + " months ago" ||
"more than " + Math.floor( day_diff / 365 ) + " year(s) ago";
"> " + Math.floor( day_diff / 365 ) + " year(s) ago";
}
// If jQuery is included in the page, adds a jQuery plugin to handle it as well

View file

@ -76,7 +76,7 @@ wn.ui.toolbar.Toolbar = Class.extend({
$('<li class="dropdown">\
<a class="dropdown-toggle" data-toggle="dropdown" href="#"\
title="'+wn._("Modules")+'"\
onclick="return false;">'+wn._("Modules")+'</a>\
onclick="return false;">erpnext</a>\
<ul class="dropdown-menu modules">\
</ul>\
</li>').prependTo('.navbar .nav:first');

View file

@ -156,15 +156,15 @@ wn.views.ListView = Class.extend({
// row #2
var row2 = $('<div class="col col-lg-12 hidden-sm">\
<div class="row">\
<div class="col col-lg-6 col-offset-3 list-tag"></div>\
<div class="col col-lg-3" style="font-size: 90%; padding-right: 0px;\
<div class="col col-lg-7 col-offset-3 list-tag"></div>\
<div class="col col-lg-2 timestamp" style="font-size: 90%; padding-right: 0px;\
color: #aaa; margin-top: -3px; text-align: right;">\
</div>\
</div>\
</div>').appendTo(body);
// modified
row2.find(".col-lg-3").html(comment_when(data.modified));
row2.find(".timestamp").html(comment_when(data.modified));
// add tags
var tag_editor = new wn.ui.TagEditor({