瀏覽代碼

Merge branch 'develop'

version-14
Pratik Vyas 10 年之前
父節點
當前提交
b1a463c6c2
共有 7 個檔案被更改,包括 16 行新增15 行删除
  1. +1
    -1
      frappe/__version__.py
  2. +1
    -1
      frappe/hooks.py
  3. +0
    -6
      frappe/public/css/desk.css
  4. +2
    -0
      frappe/public/js/frappe/form/control.js
  5. +9
    -2
      frappe/public/js/frappe/ui/tree.js
  6. +2
    -4
      frappe/public/less/desk.less
  7. +1
    -1
      setup.py

+ 1
- 1
frappe/__version__.py 查看文件

@@ -1,2 +1,2 @@
from __future__ import unicode_literals from __future__ import unicode_literals
__version__ = "5.0.8"
__version__ = "5.0.9"

+ 1
- 1
frappe/hooks.py 查看文件

@@ -4,7 +4,7 @@ app_title = "Frappe Framework"
app_publisher = "Frappe Technologies Pvt. Ltd." app_publisher = "Frappe Technologies Pvt. Ltd."
app_description = "Full Stack Web Application Framework in Python" app_description = "Full Stack Web Application Framework in Python"
app_icon = "octicon octicon-circuit-board" app_icon = "octicon octicon-circuit-board"
app_version = "5.0.8"
app_version = "5.0.9"
app_color = "orange" app_color = "orange"


app_email = "support@frappe.io" app_email = "support@frappe.io"


+ 0
- 6
frappe/public/css/desk.css 查看文件

@@ -362,12 +362,6 @@ ul.linked-with-list li {
font-size: 12px; font-size: 12px;
} }
/* z-index hack */ /* z-index hack */
.ui-datepicker {
z-index: 9999999 !important;
}
.ui-autocomplete {
z-index: 9999999 !important;
}
@media (min-width: 768px) { @media (min-width: 768px) {
.hidden-xs-inline { .hidden-xs-inline {
display: inline; display: inline;


+ 2
- 0
frappe/public/js/frappe/form/control.js 查看文件

@@ -1052,9 +1052,11 @@ frappe.ui.form.ControlLink = frappe.ui.form.ControlData.extend({
}); });
}, },
open: function(event, ui) { open: function(event, ui) {
me.$wrapper.css({"z-index": 101});
me.autocomplete_open = true; me.autocomplete_open = true;
}, },
close: function(event, ui) { close: function(event, ui) {
me.$wrapper.css({"z-index": 1});
me.autocomplete_open = false; me.autocomplete_open = false;
}, },
focus: function( event, ui ) { focus: function( event, ui ) {


+ 9
- 2
frappe/public/js/frappe/ui/tree.js 查看文件

@@ -18,6 +18,7 @@ frappe.ui.Tree = Class.extend({
root: true, root: true,
data: { data: {
value: this.label, value: this.label,
parent: this.label,
expandable: true expandable: true
} }
}); });
@@ -81,13 +82,19 @@ frappe.ui.TreeNode = Class.extend({
if(this.expandable) { if(this.expandable) {
icon_html = '<i class="icon-fixed-width icon-folder-close text-muted"></i>'; icon_html = '<i class="icon-fixed-width icon-folder-close text-muted"></i>';
} }
$(icon_html + ' <a class="tree-label grey h6">' + __(this.label) + "</a>").
$(icon_html + ' <a class="tree-label grey h6">' + this.get_label() + "</a>").
appendTo(this.$a); appendTo(this.$a);


this.$a.find('i').click(function() { this.$a.find('i').click(function() {
setTimeout(function() { me.toolbar.find(".btn-expand").click(); }, 100); setTimeout(function() { me.toolbar.find(".btn-expand").click(); }, 100);
}); });
}, },
get_label: function() {
if(this.tree.get_label) {
return this.tree.get_label(this);
}
return __(this.label);
},
toggle: function(callback) { toggle: function(callback) {
if(this.expandable && this.tree.method && !this.loaded) { if(this.expandable && this.tree.method && !this.loaded) {
this.load(callback) this.load(callback)
@@ -194,7 +201,7 @@ frappe.ui.TreeNode = Class.extend({
load: function(callback) { load: function(callback) {
var me = this; var me = this;
args = $.extend(this.tree.args || {}, { args = $.extend(this.tree.args || {}, {
parent: this.data ? this.data.value : null
parent: this.data ? (this.data.parent || this.data.value) : null
}); });


return frappe.call({ return frappe.call({


+ 2
- 4
frappe/public/less/desk.less 查看文件

@@ -180,10 +180,8 @@ ul.linked-with-list li {
} }


/* z-index hack */ /* z-index hack */
.ui-datepicker { z-index: 9999999 !important; }
.ui-autocomplete {
z-index: 9999999 !important;
}
// .ui-datepicker { z-index: 9999999 !important; }
// .ui-autocomplete { z-index: 9999999 !important; }


@media (min-width: 768px) { @media (min-width: 768px) {
.hidden-xs-inline { .hidden-xs-inline {


+ 1
- 1
setup.py 查看文件

@@ -1,6 +1,6 @@
from setuptools import setup, find_packages from setuptools import setup, find_packages


version = "5.0.8"
version = "5.0.9"


with open("requirements.txt", "r") as f: with open("requirements.txt", "r") as f:
install_requires = f.readlines() install_requires = f.readlines()


Loading…
取消
儲存