Sfoglia il codice sorgente

Merge branch 'develop'

version-14
Pratik Vyas 11 anni fa
parent
commit
142afdeb26
3 ha cambiato i file con 12 aggiunte e 4 eliminazioni
  1. +1
    -1
      config.json
  2. +7
    -0
      core/page/messages/messages.py
  3. +4
    -3
      public/js/wn/ui/filters.js

+ 1
- 1
config.json Vedi File

@@ -1,6 +1,6 @@
{
"base_template": "lib/website/templates/base.html",
"framework_version": "3.7.0",
"framework_version": "3.7.1",
"modules": {
"Calendar": {
"color": "#2980b9",


+ 7
- 0
core/page/messages/messages.py Vedi File

@@ -3,6 +3,8 @@

from __future__ import unicode_literals
import webnotes
from core.doctype.notification_count.notification_count import delete_notification_count_for


@webnotes.whitelist()
def get_list(arg=None):
@@ -17,6 +19,9 @@ def get_list(arg=None):
set docstatus = 1 where comment_doctype in ('My Company', 'Message')
and comment_docname = %s
""", webnotes.user.name)
delete_notification_count_for("Messages")
webnotes.conn.commit()

if webnotes.form_dict['contact'] == webnotes.session['user']:
@@ -69,6 +74,8 @@ def post(arg=None):
d.comment_docname = arg['contact']
d.comment_doctype = 'Message'
d.save()
delete_notification_count_for("Messages")

import webnotes.utils
if webnotes.utils.cint(arg.get('notify')):


+ 4
- 3
public/js/wn/ui/filters.js Vedi File

@@ -145,7 +145,8 @@ wn.ui.Filter = Class.extend({
me.field.desc_area = $a(me.field.wrapper, 'span', 'help', null,
'values separated by comma');
} else {
me.set_field(me.field.df.parent, me.field.df.fieldname);
me.set_field(me.field.df.parent, me.field.df.fieldname, null,
me.$w.find('.condition').val());
}
});
@@ -166,7 +167,7 @@ wn.ui.Filter = Class.extend({
if(value!=null) this.field.set_input(value);
},
set_field: function(tablename, fieldname, fieldtype) {
set_field: function(tablename, fieldname, fieldtype, condition) {
var me = this;
// set in fieldname (again)
@@ -212,7 +213,7 @@ wn.ui.Filter = Class.extend({
if(old_text)
me.field.set_input(old_text);
this.set_default_condition(df, fieldtype);
if(!condition) this.set_default_condition(df, fieldtype);
$(me.field.wrapper).find(':input').keydown(function(ev) {
if(ev.which==13) {


Caricamento…
Annulla
Salva