Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
526a4e61
Commit
526a4e61
authored
Nov 11, 2013
by
Robert Lyon
Committed by
Gerrit Code Review
Nov 11, 2013
Browse files
Merge "Display navigation arrows for image gallery block (Bug 1246933)"
parents
ed28e18d
52d0f973
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/file/blocktype/gallery/js/slideshow.js
View file @
526a4e61
...
@@ -7,29 +7,32 @@ function Slideshow(id, count) {
...
@@ -7,29 +7,32 @@ function Slideshow(id, count) {
if
(
to
==
this
.
current
||
to
<
0
||
to
>
this
.
count
)
{
if
(
to
==
this
.
current
||
to
<
0
||
to
>
this
.
count
)
{
return
false
;
return
false
;
}
}
$j
(
this
.
id
).
height
(
$j
(
this
.
id
+
"
img:eq(
"
+
this
.
current
+
"
)
"
).
height
());
$j
(
this
.
id
).
height
(
$j
(
this
.
id
+
"
img:eq(
"
+
this
.
current
+
"
)
"
).
height
()
+
10
);
$j
(
this
.
id
+
"
img:eq(
"
+
this
.
current
+
"
)
"
).
fadeOut
(
500
,
function
()
{
$j
(
this
.
id
+
"
img:eq(
"
+
this
.
current
+
"
)
"
).
fadeOut
(
500
,
function
()
{
self
.
current
=
to
;
self
.
current
=
to
;
$j
(
self
.
id
+
"
img:eq(
"
+
self
.
current
+
"
)
"
).
fadeIn
(
500
);
$j
(
self
.
id
+
"
img:eq(
"
+
self
.
current
+
"
)
"
).
fadeIn
(
500
);
$j
(
self
.
id
).
height
(
$j
(
self
.
id
+
"
img:eq(
"
+
self
.
current
+
"
)
"
).
height
()
+
10
);
$j
(
self
.
id
).
height
(
$j
(
self
.
id
+
"
img:eq(
"
+
self
.
current
+
"
)
"
).
height
()
+
10
);
});
});
$j
(
this
.
id
+
'
td.control span
'
).
removeClass
(
'
disabled
'
);
$j
(
this
.
id
+
'
td.control span
'
).
removeClass
(
'
disabled
'
);
$j
(
this
.
id
+
'
td.control span.first
'
).
addClass
(
'
hidden
'
);
if
(
to
==
0
)
{
if
(
to
==
0
)
{
$j
(
this
.
id
+
'
td.control span.prev
'
).
addClass
(
'
disabled
'
);
$j
(
this
.
id
+
'
td.control span.prev
'
).
addClass
(
'
disabled
'
);
$j
(
this
.
id
+
'
td.control span.first
'
).
addClass
(
'
disabled
'
);
}
}
else
if
(
to
==
this
.
count
)
{
else
if
(
to
==
this
.
count
)
{
$j
(
this
.
id
+
'
td.control span.next
'
).
addClass
(
'
disabled
'
);
$j
(
this
.
id
+
'
td.control span.next
'
).
addClass
(
'
disabled
'
);
$j
(
this
.
id
+
'
td.control span.
fir
st
'
).
remove
Class
(
'
hidden
'
);
$j
(
this
.
id
+
'
td.control span.
la
st
'
).
add
Class
(
'
disabled
'
);
}
}
return
false
;
return
false
;
}
}
$j
(
this
.
id
+
'
td.control span.next
'
).
click
(
function
()
{
return
self
.
change
(
self
.
current
+
1
);});
$j
(
this
.
id
+
'
td.control span.next
'
).
click
(
function
()
{
return
self
.
change
(
self
.
current
+
1
);});
$j
(
this
.
id
+
'
td.control span.prev
'
).
click
(
function
()
{
return
self
.
change
(
self
.
current
-
1
);});
$j
(
this
.
id
+
'
td.control span.prev
'
).
click
(
function
()
{
return
self
.
change
(
self
.
current
-
1
);});
$j
(
this
.
id
+
'
td.control span.first
'
).
click
(
function
()
{
return
self
.
change
(
0
);});
$j
(
this
.
id
+
'
td.control span.first
'
).
click
(
function
()
{
return
self
.
change
(
0
);});
//
$j(this.id + ' td.control span.last').click(function() {return self.change(self.count);});
$j
(
this
.
id
+
'
td.control span.last
'
).
click
(
function
()
{
return
self
.
change
(
self
.
count
);});
$j
(
this
.
id
+
"
img
"
).
hide
();
$j
(
this
.
id
+
"
img
"
).
hide
();
$j
(
this
.
id
+
"
img:eq(
"
+
this
.
current
+
"
)
"
).
show
();
$j
(
this
.
id
+
"
img:eq(
"
+
this
.
current
+
"
)
"
).
show
();
$j
(
this
.
id
+
'
td.control span.next
'
).
removeClass
(
'
disabled
'
);
if
(
this
.
current
<
this
.
count
)
{
$j
(
this
.
id
+
'
td.control span.next
'
).
removeClass
(
'
disabled
'
);
$j
(
this
.
id
+
'
td.control span.last
'
).
removeClass
(
'
disabled
'
);
}
}
}
htdocs/artefact/file/blocktype/gallery/theme/raw/slideshow.tpl
View file @
526a4e61
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
<table
class=
"images fullwidth"
>
<table
class=
"images fullwidth"
>
<tr>
<tr>
<td
class=
"control"
>
<td
class=
"control"
>
<span
class=
"first hidden"
>
«
</span>
<span
class=
"prev disabled"
>
‹
</span>
<span
class=
"prev disabled"
>
‹
</span>
<span
class=
"first disabled"
>
«
</span>
</td>
</td>
<td>
<td>
{
foreach
from
=
$images
item
=
image
name
=
images
}
{
foreach
from
=
$images
item
=
image
name
=
images
}
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
</td>
</td>
<td
class=
"control"
>
<td
class=
"control"
>
<span
class=
"next disabled"
>
›
</span>
<span
class=
"next disabled"
>
›
</span>
{*
<span class="last">»</span>
*}
<span
class=
"last
disabled
"
>
»
</span>
</td>
</td>
</tr>
</tr>
</table>
</table>
...
...
htdocs/theme/views.css
View file @
526a4e61
...
@@ -1006,6 +1006,7 @@ td.incomplete {
...
@@ -1006,6 +1006,7 @@ td.incomplete {
.slideshow
.control
{
.slideshow
.control
{
font-size
:
3em
;
font-size
:
3em
;
width
:
20px
;
width
:
20px
;
line-height
:
90%
;
}
}
.slideshow
.control
.disabled
:hover
,
.slideshow
.control
.disabled
:hover
,
.slideshow
.control
.disabled
{
.slideshow
.control
.disabled
{
...
...
Write
Preview
Supports
Markdown
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