diff options
Diffstat (limited to 'themes')
-rw-r--r-- | themes/default/js/slideshow.js | 3 | ||||
-rw-r--r-- | themes/default/views/album.html.php | 2 | ||||
-rw-r--r-- | themes/default/views/page.html.php | 1 | ||||
-rw-r--r-- | themes/default/views/photo.html.php | 2 |
4 files changed, 6 insertions, 2 deletions
diff --git a/themes/default/js/slideshow.js b/themes/default/js/slideshow.js new file mode 100644 index 00000000..35f792b8 --- /dev/null +++ b/themes/default/js/slideshow.js @@ -0,0 +1,3 @@ +function slideshow(parent_id) { + alert("Start a slideshow showing all the items that have the id " + parent_id + " as a descendent"); +}
\ No newline at end of file diff --git a/themes/default/views/album.html.php b/themes/default/views/album.html.php index b59dba01..b2617998 100644 --- a/themes/default/views/album.html.php +++ b/themes/default/views/album.html.php @@ -2,7 +2,7 @@ <div id="gAlbumHeader"> <h1><?= $item->title_edit ?></h1> <span class="gUnderState"><?= $item->description_edit ?></span> - <a href="#" id="gSlideshowLink" class="gButtonLink">Slideshow</a> + <a href="javascript:slideshow(<?= $item->id ?>);" id="gSlideshowLink" class="gButtonLink">Slideshow</a> </div> <ul id="gAlbumGrid"> diff --git a/themes/default/views/page.html.php b/themes/default/views/page.html.php index 75c9a1a9..73cbb481 100644 --- a/themes/default/views/page.html.php +++ b/themes/default/views/page.html.php @@ -15,6 +15,7 @@ <script src="<?= url::file("lib/jquery.form.js") ?>" type="text/javascript"></script> <script src="<?= $theme->url("js/user.js") ?>" type="text/javascript"></script> <script src="<?= $theme->url("js/comment.js") ?>" type="text/javascript"></script> + <script src="<?= $theme->url("js/slideshow.js") ?>" type="text/javascript"></script> <? if ($user): ?> <script src="<?= url::file("lib/jquery.jeditable.js") ?>" type="text/javascript"></script> <? endif; ?> diff --git a/themes/default/views/photo.html.php b/themes/default/views/photo.html.php index 512c1e17..2bd5d07e 100644 --- a/themes/default/views/photo.html.php +++ b/themes/default/views/photo.html.php @@ -1,7 +1,7 @@ <? defined("SYSPATH") or die("No direct script access."); ?> <div id="gItem"> <a href="" class="gButtonLink">Full size (1024x768)</a> - <a href="" class="gButtonLink">Slideshow</a> + <a href="javascript:slideshow(<?= $item->parent_id ?>);" id="gSlideshowLink" class="gButtonLink">Slideshow</a> <img id="gPhotoID-<?= $item->id ?>" alt="photo" src="<?= $item->resize_url() ?>" width="<?= $item->resize_width ?>" |