upgraded jquery and jquery.gantt
This commit is contained in:
parent
04b9579b24
commit
601199db6e
@ -1,10 +1,11 @@
|
||||
erpnext.updates = [
|
||||
["14th November 2012", [
|
||||
["16th November 2012", [
|
||||
"Appraisal: Cleaned up form and logic. Removed complex and unnecessary approval logic, \
|
||||
the appraiser can select the template and role and make an appraisal. \
|
||||
Normal user can see self created Appraisals. HR Manager can see all Appraisals.",
|
||||
"Project: Bugfix in Gantt Chart (caused due to jquery conflict)",
|
||||
]],
|
||||
["14th November 2012", [
|
||||
["15th November 2012", [
|
||||
"Customer Issue: Moved all allocations to 'Assigned' so that there is avoid duplication fo features.",
|
||||
"Letter Head: Show preview, make upload button more visible.",
|
||||
"Price List: Removed import, now import from Data Import Tool.",
|
||||
|
@ -27,24 +27,26 @@ erpnext.show_task_gantt = function(parent, project) {
|
||||
var source = [];
|
||||
// projects
|
||||
$.each(r.message, function(i,v) {
|
||||
source.push({
|
||||
name: v.project,
|
||||
desc: v.subject,
|
||||
values: [{
|
||||
label: v.subject,
|
||||
desc: v.description || v.subject,
|
||||
from: '/Date("'+v.exp_start_date+'")/',
|
||||
to: '/Date("'+v.exp_end_date+'")/',
|
||||
customClass: {
|
||||
'Open':'ganttRed',
|
||||
'Pending Review':'ganttOrange',
|
||||
'Working':'',
|
||||
'Completed':'ganttGreen',
|
||||
'Cancelled':'ganttGray'
|
||||
}[v.status],
|
||||
dataObj: v
|
||||
}]
|
||||
})
|
||||
if(v.exp_start_date && v.exp_end_date) {
|
||||
source.push({
|
||||
name: v.project,
|
||||
desc: v.subject,
|
||||
values: [{
|
||||
label: v.subject,
|
||||
desc: v.description || v.subject,
|
||||
from: '/Date("'+v.exp_start_date+'")/',
|
||||
to: '/Date("'+v.exp_end_date+'")/',
|
||||
customClass: {
|
||||
'Open':'ganttRed',
|
||||
'Pending Review':'ganttOrange',
|
||||
'Working':'',
|
||||
'Completed':'ganttGreen',
|
||||
'Cancelled':'ganttGray'
|
||||
}[v.status],
|
||||
dataObj: v
|
||||
}]
|
||||
})
|
||||
}
|
||||
});
|
||||
return source
|
||||
}
|
||||
@ -63,7 +65,7 @@ erpnext.show_task_gantt = function(parent, project) {
|
||||
source: get_source(r),
|
||||
navigate: project ? "button" : "scroll",
|
||||
scale: "weeks",
|
||||
minScale: "weeks",
|
||||
minScale: "day",
|
||||
maxScale: "months",
|
||||
onItemClick: function(data) {
|
||||
wn.set_route('Form', 'Task', data.name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user