Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
db21eb3b
Commit
db21eb3b
authored
Nov 13, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
example commit to explain where initial data from spreadsheet should be read
parent
5aa48435
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
dream/platform/src/dream/InputModule_viewAddDocumentDialog.js
...m/platform/src/dream/InputModule_viewAddDocumentDialog.js
+9
-8
dream/platform/src/dream/Input_viewSpreadsheet.js
dream/platform/src/dream/Input_viewSpreadsheet.js
+5
-1
No files found.
dream/platform/src/dream/InputModule_viewAddDocumentDialog.js
View file @
db21eb3b
...
...
@@ -59,7 +59,8 @@
edges
:
{},
preference
:
{},
general
:
{},
wip_part_spreadsheet
:
[[
//XXX do not set spreadsheet default here but in the spreadsheet gadget
/* wip_part_spreadsheet: [[
"Order ID",
"Due Date",
"Priority",
...
...
@@ -81,13 +82,13 @@
"Sequence",
"Capacity Requirements"
]],
capacity_by_station_spreadsheet
:
[[
"
Day
"
,
"
CS1
"
]],
dp_capacity_spreadsheet
:
[[
]],
dp_route_spreadsheet
:
[[
]]
},
//
capacity_by_station_spreadsheet: [[
//
"Day",
//
"CS1"
//
]],
//
dp_capacity_spreadsheet: [[ ]],
//
dp_route_spreadsheet: [[ ]]
*/
},
name
=
"
Untitled
"
;
return
new
RSVP
.
Queue
()
...
...
dream/platform/src/dream/Input_viewSpreadsheet.js
View file @
db21eb3b
...
...
@@ -86,8 +86,12 @@
.
push
(
function
(
result_list
)
{
// XXX here, get options to create some columns,
// creating empty list from options
data
=
JSON
.
parse
(
result_list
[
0
]).
tutorial_spreadsheet
;
if
(
!
data
)
{
data
=
configuration
columns
}
return
result_list
[
1
].
render
(
JSON
.
stringify
(
JSON
.
parse
(
result_list
[
0
]).
tutorial_spreadsheet
),
JSON
.
stringify
(
data
),
{
minSpareRows
:
1
,
onChange
:
function
()
{
if
(
gadget
.
timeout
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment