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
88092fc6
Commit
88092fc6
authored
Jan 29, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New document: remove "Empty" button that no longer work
parent
e5407558
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
70 deletions
+2
-70
dream/platform/src/dream/InputModule_viewAddDocumentDialog.html
...platform/src/dream/InputModule_viewAddDocumentDialog.html
+1
-4
dream/platform/src/dream/InputModule_viewAddDocumentDialog.js
...m/platform/src/dream/InputModule_viewAddDocumentDialog.js
+1
-66
No files found.
dream/platform/src/dream/InputModule_viewAddDocumentDialog.html
View file @
88092fc6
...
@@ -11,9 +11,6 @@
...
@@ -11,9 +11,6 @@
<script
src=
"InputModule_viewAddDocumentDialog.js"
type=
"text/javascript"
></script>
<script
src=
"InputModule_viewAddDocumentDialog.js"
type=
"text/javascript"
></script>
</head>
</head>
<body>
<body>
<form
class=
"new_form"
>
<button
type=
"submit"
class=
"ui-btn ui-btn-b ui-btn-inline ui-icon-plus ui-btn-icon-right"
>
Empty
</button>
</form>
<form
class=
"import_form"
>
<form
class=
"import_form"
>
<input
id=
"dream_import"
type=
"file"
required=
""
<input
id=
"dream_import"
type=
"file"
required=
""
name=
"dream_import"
>
name=
"dream_import"
>
...
...
dream/platform/src/dream/InputModule_viewAddDocumentDialog.js
View file @
88092fc6
...
@@ -55,68 +55,6 @@
...
@@ -55,68 +55,6 @@
});
});
}
}
function
waitForNew
(
gadget
)
{
var
json_data
=
{
nodes
:
{},
edges
:
{},
preference
:
{},
general
:
{},
wip_part_spreadsheet
:
[[
"
Order ID
"
,
"
Due Date
"
,
"
Priority
"
,
"
Project Manager
"
,
"
Part
"
,
"
Part Type
"
,
"
Sequence
"
,
"
Processing Times
"
,
"
Prerequisites Parts
"
]],
shift_spreadsheet
:
[[
"
Day
"
,
"
Machines
"
,
// XXX more generic name ?
"
Start
"
,
"
End
"
]],
capacity_by_project_spreadsheet
:
[[
"
Project Name
"
,
"
Sequence
"
,
"
Capacity Requirements
"
]],
capacity_by_station_spreadsheet
:
[[
"
Day
"
,
"
CS1
"
]],
dp_capacity_spreadsheet
:
[[
]],
dp_route_spreadsheet
:
[[
]]
},
name
=
"
Untitled
"
;
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
promiseEventListener
(
gadget
.
props
.
element
.
getElementsByClassName
(
"
new_form
"
)[
0
],
'
submit
'
,
false
);
})
.
push
(
function
(
evt
)
{
// Prevent double click
evt
.
target
.
getElementsByClassName
(
"
ui-btn
"
)[
0
].
disabled
=
true
;
return
createDocument
(
gadget
,
name
);
})
.
push
(
function
(
jio_document
)
{
// Add JSON as attachment
return
gadget
.
aq_putAttachment
({
"
_id
"
:
jio_document
.
id
,
"
_attachment
"
:
"
body.json
"
,
"
_data
"
:
JSON
.
stringify
(
json_data
),
"
_mimetype
"
:
"
application/json
"
});
});
}
var
gadget_klass
=
rJS
(
window
);
var
gadget_klass
=
rJS
(
window
);
initGadgetMixin
(
gadget_klass
);
initGadgetMixin
(
gadget_klass
);
gadget_klass
gadget_klass
...
@@ -137,10 +75,7 @@
...
@@ -137,10 +75,7 @@
return
new
RSVP
.
Queue
()
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
.
push
(
function
()
{
return
RSVP
.
any
([
return
waitForNew
(
gadget
);
waitForImport
(
gadget
),
waitForNew
(
gadget
)
]);
})
})
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
return
gadget
.
whoWantsToDisplayThisDocument
(
result
.
id
);
return
gadget
.
whoWantsToDisplayThisDocument
(
result
.
id
);
...
...
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