mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-30 10:50:08 +00:00
minor refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d07094674a
commit
01d914cd60
@ -33,13 +33,13 @@ ISSUES:
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
// setup event handlers...
|
// setup event handlers...
|
||||||
$(document).keydown(handleKeys)
|
$(document).keydown(handleKeys)
|
||||||
$(".image").click(imageClickHandler)
|
$(".image").click(handleClick)
|
||||||
|
|
||||||
// set the default position...
|
// set the default position...
|
||||||
$('.current-image').click()
|
$('.current-image').click()
|
||||||
});
|
});
|
||||||
|
|
||||||
function imageClickHandler(e) {
|
function handleClick(e) {
|
||||||
|
|
||||||
var cur = $(this)
|
var cur = $(this)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user