mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-12 17:51:20 +00:00
[fix] [client script] call cur_frm.cscript.custom_ type functions in the callback of standard functions
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
cur_frm.cscript.refresh = function(doc) {
|
||||
wn.call({
|
||||
return wn.call({
|
||||
method:"utilities.doctype.rename_tool.rename_tool.get_doctypes",
|
||||
callback: function(r) {
|
||||
cur_frm.set_df_property("select_doctype", "options", r.message);
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
function SMSManager() {
|
||||
var me = this;
|
||||
this.get_contact_number = function(contact, key, value) {
|
||||
$c_obj('SMS Control', 'get_contact_number', {
|
||||
return $c_obj('SMS Control', 'get_contact_number', {
|
||||
contact_name:contact,
|
||||
value:value,
|
||||
key:key
|
||||
@@ -63,7 +63,7 @@ function SMSManager() {
|
||||
var v = me.dialog.get_values();
|
||||
if(v) {
|
||||
$(this).set_working();
|
||||
$c_obj('SMS Control', 'send_form_sms', v, function(r,rt) {
|
||||
return $c_obj('SMS Control', 'send_form_sms', v, function(r,rt) {
|
||||
$(this).done_working();
|
||||
if(r.exc) {msgprint(r.exc); return; }
|
||||
msgprint('Message Sent');
|
||||
|
||||
Reference in New Issue
Block a user