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
5bd4883b
Commit
5bd4883b
authored
Jan 26, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jsplumb: some fixes for Internet Explorer
parent
a861068e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
15 deletions
+14
-15
dream/platform/src/jsplumb/index.html
dream/platform/src/jsplumb/index.html
+6
-8
dream/platform/src/jsplumb/jsplumb.js
dream/platform/src/jsplumb/jsplumb.js
+8
-7
No files found.
dream/platform/src/jsplumb/index.html
View file @
5bd4883b
...
...
@@ -14,6 +14,10 @@
<script
src=
"../<%= curl.jsplumbjs.relative_dest %>"
></script>
<script
src=
"../<%= copy.handlebars.relative_dest %>"
></script>
<script
src=
"../dream/mixin_gadget.js"
></script>
<script
src=
"../dream/mixin_promise.js"
></script>
<script
src=
"jsplumb.js"
></script>
<script
id=
"node-template"
type=
"text/x-handlebars-template"
>
<
div
class
=
"
window {{class}}
"
id
=
"
{{element_id}}
"
...
...
@@ -22,8 +26,7 @@
<
div
class
=
"
ep
"
><
/div
>
<
/div
>
</script>
<template
id=
"popup-edit-template"
>
<script
id=
"popup-edit-template"
type=
"text/x-handlebars-template"
>
<
div
id
=
"
edit-popup
"
data
-
position
-
to
=
"
origin
"
>
<
div
data
-
role
=
"
header
"
data
-
theme
=
"
a
"
>
<
h1
class
=
"
node_class
"
>
Edit
properties
<
/h1
>
...
...
@@ -36,12 +39,7 @@
<
input
type
=
"
submit
"
value
=
"
Validate
"
>
<
/form
>
<
/div
>
</template>
<script
src=
"../dream/mixin_gadget.js"
></script>
<script
src=
"../dream/mixin_promise.js"
></script>
<script
src=
"jsplumb.js"
></script>
</script>
</head>
<body>
<div
id=
"main"
></div>
...
...
dream/platform/src/jsplumb/jsplumb.js
View file @
5bd4883b
...
...
@@ -44,7 +44,7 @@
.
getElementById
(
'
node-template
'
).
innerHTML
,
node_template
=
Handlebars
.
compile
(
node_template_source
),
popup_edit_template
=
gadget_klass
.
__template_element
.
getElementById
(
'
popup-edit-template
'
),
.
getElementById
(
'
popup-edit-template
'
)
.
innerHTML
,
domParser
=
new
DOMParser
();
function
loopJsplumbBind
(
gadget
,
type
,
callback
)
{
...
...
@@ -515,9 +515,9 @@
delete
schema
.
properties
.
source
;
delete
schema
.
properties
.
destination
;
gadget
.
props
.
element
.
appendChild
(
document
.
importNode
(
popup_edit_template
.
content
,
true
).
children
[
0
]
);
gadget
.
props
.
element
.
insertAdjacentHTML
(
'
beforeend
'
,
popup_edit_template
);
edit_popup
=
$
(
gadget
.
props
.
element
).
find
(
'
#edit-popup
'
);
edit_popup
.
find
(
'
.node_class
'
).
text
(
connection
.
_class
);
fieldset_element
=
edit_popup
.
find
(
'
fieldset
'
)[
0
];
...
...
@@ -621,9 +621,10 @@
node_edit_popup
.
remove
();
}
gadget
.
props
.
element
.
appendChild
(
document
.
importNode
(
popup_edit_template
.
content
,
true
).
children
[
0
]
);
gadget
.
props
.
element
.
insertAdjacentHTML
(
'
beforeend
'
,
popup_edit_template
);
node_edit_popup
=
$
(
gadget
.
props
.
element
).
find
(
'
#edit-popup
'
);
// Set the name of the popup to the node class
node_edit_popup
.
find
(
'
.node_class
'
).
text
(
node_data
.
_class
);
...
...
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