瀏覽代碼

[minor] clear headline

version-14
Rushabh Mehta 8 年之前
父節點
當前提交
242bfa421f
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      frappe/public/js/legacy/form.js

+ 1
- 0
frappe/public/js/legacy/form.js 查看文件

@@ -459,6 +459,7 @@ _f.Frm.prototype.refresh = function(docname) {
_f.Frm.prototype.show_if_needs_refresh = function() { _f.Frm.prototype.show_if_needs_refresh = function() {
if(this.doc.__needs_refresh) { if(this.doc.__needs_refresh) {
if(this.doc.__unsaved) { if(this.doc.__unsaved) {
this.dashboard.clear_headline();
this.dashboard.set_headline_alert(__("This form has been modified after you have loaded it") this.dashboard.set_headline_alert(__("This form has been modified after you have loaded it")
+ '<a class="btn btn-xs btn-primary pull-right" onclick="cur_frm.reload_doc()">' + '<a class="btn btn-xs btn-primary pull-right" onclick="cur_frm.reload_doc()">'
+ __("Refresh") + '</a>', "alert-warning"); + __("Refresh") + '</a>', "alert-warning");


Loading…
取消
儲存