From 2736ef8628cabb3012f65991e0a072c7bdfd8345 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 7 May 2014 18:49:36 +0530 Subject: [PATCH] Assignment: comment mandatory. Fixes frappe/erpnext#1600 --- frappe/public/js/frappe/form/assign_to.js | 43 +++++++++++------------ frappe/public/js/frappe/ui/dialog.js | 2 +- 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/frappe/public/js/frappe/form/assign_to.js b/frappe/public/js/frappe/form/assign_to.js index dac6ebd85b..6bf24bdd76 100644 --- a/frappe/public/js/frappe/form/assign_to.js +++ b/frappe/public/js/frappe/form/assign_to.js @@ -1,5 +1,5 @@ // Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors -// MIT License. See license.txt +// MIT License. See license.txt // assign to is lined to todo // refresh - load todos @@ -15,9 +15,9 @@ frappe.ui.form.AssignTo = Class.extend({ this.wrapper = $('
\
\
').appendTo(this.parent); - + this.$list = this.wrapper.find(".alert-list"); - + this.parent.find(".btn").click(function() { me.add(); }); @@ -36,11 +36,11 @@ frappe.ui.form.AssignTo = Class.extend({ this.frm.get_docinfo().assignments = d; this.$list.empty(); if(this.dialog) { - this.dialog.hide(); + this.dialog.hide(); } if(d && d.length) { - for(var i=0; i