fix in website pages - should be of _type POST
This commit is contained in:
parent
561556db58
commit
5acd08205e
@ -15,6 +15,7 @@ erpnext.send_message = function(opts) {
|
|||||||
subject: opts.subject,
|
subject: opts.subject,
|
||||||
sender: opts.sender,
|
sender: opts.sender,
|
||||||
status: opts.status,
|
status: opts.status,
|
||||||
|
_type: "POST",
|
||||||
message: typeof opts.message == "string"
|
message: typeof opts.message == "string"
|
||||||
? opts.message
|
? opts.message
|
||||||
: JSON.stringify(opts.message)
|
: JSON.stringify(opts.message)
|
||||||
|
@ -38,7 +38,8 @@ $(document).ready(function() {
|
|||||||
cmd: "website.helpers.blog.add_comment",
|
cmd: "website.helpers.blog.add_comment",
|
||||||
comment_doctype: "Blog",
|
comment_doctype: "Blog",
|
||||||
comment_docname: "{{ name }}",
|
comment_docname: "{{ name }}",
|
||||||
page_name: "{{ page_name }}"
|
page_name: "{{ page_name }}",
|
||||||
|
_type: "POST"
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#comment-form .alert").toggle(false);
|
$("#comment-form .alert").toggle(false);
|
||||||
|
@ -62,7 +62,8 @@ login.show_forgot_password = function(){
|
|||||||
url: "server.py",
|
url: "server.py",
|
||||||
data: {
|
data: {
|
||||||
cmd: "reset_password",
|
cmd: "reset_password",
|
||||||
user: login_id
|
user: login_id,
|
||||||
|
_type: "POST"
|
||||||
},
|
},
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
login.set_message("A new password has been sent to your email id.", "GREEN");
|
login.set_message("A new password has been sent to your email id.", "GREEN");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user