瀏覽代碼

[uifixes]

version-14
Rushabh Mehta 12 年之前
父節點
當前提交
09811d99ff
共有 4 個檔案被更改,包括 6 行新增6 行删除
  1. +1
    -1
      public/js/legacy/utils/datetime.js
  2. +1
    -1
      public/js/lib/prettydate.js
  3. +1
    -1
      public/js/wn/ui/toolbar/toolbar.js
  4. +3
    -3
      public/js/wn/views/listview.js

+ 1
- 1
public/js/legacy/utils/datetime.js 查看文件

@@ -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


+ 1
- 1
public/js/lib/prettydate.js 查看文件

@@ -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


+ 1
- 1
public/js/wn/ui/toolbar/toolbar.js 查看文件

@@ -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');


+ 3
- 3
public/js/wn/views/listview.js 查看文件

@@ -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({


Loading…
取消
儲存