Procházet zdrojové kódy

[fix] merge-conflict

version-14
Saurabh před 8 roky
rodič
revize
0d5d786a3c
3 změnil soubory, kde provedl 33 přidání a 30 odebrání
  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 Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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: options,
fieldname: df.fieldname,
onchange: () => { me.refresh(true); }
});
}
});
});
}

this.standard_filters_added = true;
},
@@ -502,4 +505,4 @@ frappe.ui.BaseList = Class.extend({
}
});
}
});
});

+ 4
- 4
frappe/public/js/frappe/views/communication.js Zobrazit soubor

@@ -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() {


Načítá se…
Zrušit
Uložit