mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
fix in messages
This commit is contained in:
@@ -218,7 +218,7 @@ if(r.server_messages)msgprint(r.server_messages)
|
|||||||
if(r.exc){errprint(r.exc);console.log(r.exc);};if(r.docs)LocalDB.sync(r.docs);}
|
if(r.exc){errprint(r.exc);console.log(r.exc);};if(r.docs)LocalDB.sync(r.docs);}
|
||||||
wn.request.call=function(opts){wn.request.prepare(opts);$.ajax({url:opts.url||wn.request.url,data:opts.args,type:opts.type||'POST',dataType:opts.dataType||'json',success:function(r,xhr){wn.request.cleanup(opts,r);opts.success(r,xhr.responseText);},error:function(xhr,textStatus){wn.request.cleanup(opts,{});msgprint('Unable to complete request: '+textStatus)
|
wn.request.call=function(opts){wn.request.prepare(opts);$.ajax({url:opts.url||wn.request.url,data:opts.args,type:opts.type||'POST',dataType:opts.dataType||'json',success:function(r,xhr){wn.request.cleanup(opts,r);opts.success(r,xhr.responseText);},error:function(xhr,textStatus){wn.request.cleanup(opts,{});msgprint('Unable to complete request: '+textStatus)
|
||||||
if(opts.error)opts.error(xhr)}})}
|
if(opts.error)opts.error(xhr)}})}
|
||||||
wn.call=function(opts){var args=opts.args||{};if(opts.module&&opts.page){args.cmd=module+'.page.'+page+'.'+page+'.'+method}else if(opts.method){args.cmd=opts.method;}
|
wn.call=function(opts){var args=opts.args||{};if(opts.module&&opts.page){args.cmd=opts.module+'.page.'+opts.page+'.'+opts.page+'.'+opts.method}else if(opts.method){args.cmd=opts.method;}
|
||||||
wn.request.call({args:args,success:opts.callback,error:opts.error,btn:opts.btn,freeze:opts.freeze,show_spinner:!opts.no_spinner});}
|
wn.request.call({args:args,success:opts.callback,error:opts.error,btn:opts.btn,freeze:opts.freeze,show_spinner:!opts.no_spinner});}
|
||||||
/*
|
/*
|
||||||
* lib/js/core.js
|
* lib/js/core.js
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ if(r.server_messages)msgprint(r.server_messages)
|
|||||||
if(r.exc){errprint(r.exc);console.log(r.exc);};if(r.docs)LocalDB.sync(r.docs);}
|
if(r.exc){errprint(r.exc);console.log(r.exc);};if(r.docs)LocalDB.sync(r.docs);}
|
||||||
wn.request.call=function(opts){wn.request.prepare(opts);$.ajax({url:opts.url||wn.request.url,data:opts.args,type:opts.type||'POST',dataType:opts.dataType||'json',success:function(r,xhr){wn.request.cleanup(opts,r);opts.success(r,xhr.responseText);},error:function(xhr,textStatus){wn.request.cleanup(opts,{});msgprint('Unable to complete request: '+textStatus)
|
wn.request.call=function(opts){wn.request.prepare(opts);$.ajax({url:opts.url||wn.request.url,data:opts.args,type:opts.type||'POST',dataType:opts.dataType||'json',success:function(r,xhr){wn.request.cleanup(opts,r);opts.success(r,xhr.responseText);},error:function(xhr,textStatus){wn.request.cleanup(opts,{});msgprint('Unable to complete request: '+textStatus)
|
||||||
if(opts.error)opts.error(xhr)}})}
|
if(opts.error)opts.error(xhr)}})}
|
||||||
wn.call=function(opts){var args=opts.args||{};if(opts.module&&opts.page){args.cmd=module+'.page.'+page+'.'+page+'.'+method}else if(opts.method){args.cmd=opts.method;}
|
wn.call=function(opts){var args=opts.args||{};if(opts.module&&opts.page){args.cmd=opts.module+'.page.'+opts.page+'.'+opts.page+'.'+opts.method}else if(opts.method){args.cmd=opts.method;}
|
||||||
wn.request.call({args:args,success:opts.callback,error:opts.error,btn:opts.btn,freeze:opts.freeze,show_spinner:!opts.no_spinner});}
|
wn.request.call({args:args,success:opts.callback,error:opts.error,btn:opts.btn,freeze:opts.freeze,show_spinner:!opts.no_spinner});}
|
||||||
/*
|
/*
|
||||||
* lib/js/core.js
|
* lib/js/core.js
|
||||||
@@ -684,8 +684,8 @@ $.extend(this,this.opts);this.prepare_opts();$(this.parent).html(repl('\
|
|||||||
<h3 class="title hide">%(title)s</h3>\
|
<h3 class="title hide">%(title)s</h3>\
|
||||||
<div style="height: 30px;">\
|
<div style="height: 30px;">\
|
||||||
<div class="btn-group" style="float: left;">\
|
<div class="btn-group" style="float: left;">\
|
||||||
<a class="btn btn-small btn-refresh">\
|
<a class="btn btn-small btn-refresh btn-info">\
|
||||||
<i class="icon-refresh"></i> Refresh</a>\
|
<i class="icon-refresh icon-white"></i> Refresh</a>\
|
||||||
<a class="btn btn-small btn-new">\
|
<a class="btn btn-small btn-new">\
|
||||||
<i class="icon-plus"></i> New %(new_doctype)s</a>\
|
<i class="icon-plus"></i> New %(new_doctype)s</a>\
|
||||||
<a class="btn btn-small btn-filter">\
|
<a class="btn btn-small btn-filter">\
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
892
|
894
|
||||||
Reference in New Issue
Block a user