Problem with frappe.throw

now It shows message but the document get savevd.
please check Stuck-up with Frappe.throw