Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-drag-and-drop-v2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
xblock-drag-and-drop-v2
Commits
b42f4f5e
Commit
b42f4f5e
authored
Jul 03, 2014
by
Filippo Valsorda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore the form to change the background image
parent
15fca813
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
drag_and_drop_v2/public/css/drag_and_drop_edit.css
+4
-0
drag_and_drop_v2/public/js/drag_and_drop_edit.js
+1
-0
drag_and_drop_v2/templates/html/drag_and_drop_edit.html
+5
-0
No files found.
drag_and_drop_v2/public/css/drag_and_drop_edit.css
View file @
b42f4f5e
...
@@ -206,6 +206,10 @@
...
@@ -206,6 +206,10 @@
margin-left
:
0
;
margin-left
:
0
;
}
}
.xblock--drag-and-drop
.drag-builder
.target-image-form
input
{
width
:
50%
;
}
.xblock--drag-and-drop
.zones-form
.zone-row
label
{
.xblock--drag-and-drop
.zones-form
.zone-row
label
{
display
:
inline-block
;
display
:
inline-block
;
width
:
18%
;
width
:
18%
;
...
...
drag_and_drop_v2/public/js/drag_and_drop_edit.js
View file @
b42f4f5e
...
@@ -162,6 +162,7 @@ function DragAndDropEditBlock(runtime, element) {
...
@@ -162,6 +162,7 @@ function DragAndDropEditBlock(runtime, element) {
e
.
preventDefault
();
e
.
preventDefault
();
_fn
.
data
.
targetImg
=
$
(
'.target-image-form input'
,
element
).
val
();
_fn
.
data
.
targetImg
=
$
(
'.target-image-form input'
,
element
).
val
();
_fn
.
$target
.
css
(
'background'
,
'url('
+
_fn
.
data
.
targetImg
+
') no-repeat'
);
// Placeholder shim for IE9
// Placeholder shim for IE9
$
.
placeholder
.
shim
();
$
.
placeholder
.
shim
();
...
...
drag_and_drop_v2/templates/html/drag_and_drop_edit.html
View file @
b42f4f5e
...
@@ -26,6 +26,11 @@
...
@@ -26,6 +26,11 @@
<h3>
Zone Positions
</h3>
<h3>
Zone Positions
</h3>
</header>
</header>
<section
class=
"tab-content"
>
<section
class=
"tab-content"
>
<section
class=
"tab-content target-image-form"
>
<label>
New background URL:
</label>
<input
type=
"text"
>
<button
class=
"btn"
>
Change background
</button>
</section>
<div
class=
"items"
>
<div
class=
"items"
>
<form
class=
"zones-form"
></form>
<form
class=
"zones-form"
></form>
<a
href=
"#"
class=
"add-zone add-element"
><div
class=
"icon add"
></div>
Add a zone
</a>
<a
href=
"#"
class=
"add-zone add-element"
><div
class=
"icon add"
></div>
Add a zone
</a>
...
...
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