fix in website pages - should be of _type POST

This commit is contained in:
Anand Doshi 2013-02-21 20:06:57 +05:30
parent 561556db58
commit 5acd08205e
3 changed files with 5 additions and 2 deletions

View File

@ -15,6 +15,7 @@ erpnext.send_message = function(opts) {
subject: opts.subject,
sender: opts.sender,
status: opts.status,
_type: "POST",
message: typeof opts.message == "string"
? opts.message
: JSON.stringify(opts.message)

View File

@ -38,7 +38,8 @@ $(document).ready(function() {
cmd: "website.helpers.blog.add_comment",
comment_doctype: "Blog",
comment_docname: "{{ name }}",
page_name: "{{ page_name }}"
page_name: "{{ page_name }}",
_type: "POST"
}
$("#comment-form .alert").toggle(false);

View File

@ -62,7 +62,8 @@ login.show_forgot_password = function(){
url: "server.py",
data: {
cmd: "reset_password",
user: login_id
user: login_id,
_type: "POST"
},
success: function(data) {
login.set_message("A new password has been sent to your email id.", "GREEN");