Browse Source

Merge branch 'hotfix'

version-14
Saurabh 8 years ago
parent
commit
8d16ecfd31
3 changed files with 33 additions and 30 deletions
  1. +1
    -1
      frappe/__init__.py
  2. +28
    -25
      frappe/public/js/frappe/ui/base_list.js
  3. +4
    -4
      frappe/public/js/frappe/views/communication.js

+ 1
- 1
frappe/__init__.py View File

@@ -14,7 +14,7 @@ import os, sys, importlib, inspect, json
from .exceptions import *
from .utils.jinja import get_jenv, get_template, render_template

__version__ = '8.2.4'
__version__ = '8.2.5'
__title__ = "Frappe Framework"

local = Local()


+ 28
- 25
frappe/public/js/frappe/ui/base_list.js View File

@@ -184,32 +184,35 @@ frappe.ui.BaseList = Class.extend({
return;
}

this.page.add_field({
fieldtype:'Link',
options:this.doctype,
label:'ID',
fieldname:'name',
onchange: () => { me.refresh(true); }
});

this.meta.fields.forEach(function(df) {
if(df.in_standard_filter && !frappe.model.no_value_type.includes(df.fieldtype)) {
if(df.fieldtype == "Select" && df.options) {
var options = df.options.split("\n")
if(options.length > 0 && options[0] != ""){
options.unshift("");
df.options = options.join("\n");
if(this.meta) {
this.page.add_field({
fieldtype:'Link',
options:this.doctype,
label:'ID',
fieldname:'name',
onchange: () => { me.refresh(true); }
});

this.meta.fields.forEach(function(df) {
if(df.in_standard_filter && !frappe.model.no_value_type.includes(df.fieldtype)) {
let options = df.options;
if(df.fieldtype == "Select" && df.options) {
options = df.options.split("\n")
if(options.length > 0 && options[0] != ""){
options.unshift("");
df.options = options.join("\n");
}
}
me.page.add_field({
fieldtype: df.fieldtype,
label: __(df.label),
options: df.options,
fieldname: df.fieldname,
onchange: () => {me.refresh(true);}
});
}
me.page.add_field({
fieldtype: df.fieldtype,
label: __(df.label),
options: df.options,
fieldname: df.fieldname,
onchange: () => {me.refresh(true);}
});
}
});
});
}

this.page.page_form.on('change', ':input', function() {
me.refresh(true);
@@ -506,4 +509,4 @@ frappe.ui.BaseList = Class.extend({
}
});
}
});
});

+ 4
- 4
frappe/public/js/frappe/views/communication.js View File

@@ -156,8 +156,9 @@ frappe.views.CommunicationComposer = Class.extend({

setup_standard_reply: function() {
var me = this;
this.dialog.get_input("standard_reply").on("change", function() {
var standard_reply = $(this).val();

this.dialog.fields_dict["standard_reply"].df.onchange = () => {
var standard_reply = me.dialog.fields_dict.standard_reply.$input.val();

var prepend_reply = function(reply) {
if(me.reply_added===standard_reply) {
@@ -194,8 +195,7 @@ frappe.views.CommunicationComposer = Class.extend({
prepend_reply(r.message);
}
});

});
}
},

setup_last_edited_communication: function() {


Loading…
Cancel
Save