@@ -1,2 +1,2 @@ | |||||
from __future__ import unicode_literals | from __future__ import unicode_literals | ||||
__version__ = "5.0.8" | |||||
__version__ = "5.0.9" |
@@ -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" | ||||
@@ -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; | ||||
@@ -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 ) { | ||||
@@ -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({ | ||||
@@ -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,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() | ||||