Merge branch 'handlerupdate' of github.com:webnotes/erpnext into shf_rename

Conflicts:
	version.num
This commit is contained in:
Anand Doshi
2012-03-29 15:35:08 +05:30
17 changed files with 285 additions and 26 deletions

View File

@@ -1,5 +1,7 @@
// render
wn.doclistviews['Support Ticket'] = wn.views.ListView.extend({
me: this,
init: function(d) {
this._super(d)
this.fields = this.fields.concat([
@@ -26,8 +28,13 @@ wn.doclistviews['Support Ticket'] = wn.views.ListView.extend({
data.status = 'Waiting'
}
data.status_html = repl('<span class="label label-%(label_type)s">%(status)s</span>', data);
var a = $(data.status_html).click(function() {
me.set_filter('status', $(this).text());
});
data.description = data.description + ' | ' + data.subject;
// replace double quote with blank string
data.description = cstr(data.subject).replace(/"/gi, '')
+ " | " + cstr(data.description).replace(/"/gi, '');
// description
if(data.description && data.description.length > 50) {