");
+ $(this).find('.title').data('toggle','0');
$('.title').click(function(){
$(this).siblings('.dispnone').toggle();
+ if($(this).data('toggle') == '0'){
+ $(this).data('toggle','1');
+ $(this).find('.toggler img').attr('src','/media/img/down.png')
+ }
+ else{
+ $(this).data('toggle','0');
+ $(this).find('.toggler img').attr('src','/media/img/right.png')
+ }
});
}
});
diff --git a/public/media/img/right.png b/public/media/img/right.png
new file mode 100644
index 0000000..4f43b11
Binary files /dev/null and b/public/media/img/right.png differ
--
cgit v1.2.3-55-g7522
From fe8f0591ad8d45f24a6e13ea7e73f91036848152 Mon Sep 17 00:00:00 2001
From: Simon
Date: Thu, 7 Apr 2011 16:25:05 +0200
Subject: pfeile in allen übersichten hinzugefügt, script ausgelagert
---
application/modules/user/layouts/user.phtml | 1 +
.../modules/user/views/scripts/bootiso/index.phtml | 11 -----------
.../modules/user/views/scripts/bootmenu/index.phtml | 13 +------------
.../modules/user/views/scripts/bootos/index.phtml | 21 ---------------------
.../modules/user/views/scripts/filter/index.phtml | 11 -----------
.../modules/user/views/scripts/group/show.phtml | 12 +-----------
.../modules/user/views/scripts/pool/index.phtml | 12 ------------
.../modules/user/views/scripts/session/index.phtml | 11 -----------
public/media/js/user.js | 19 +++++++++++++++++++
9 files changed, 22 insertions(+), 89 deletions(-)
create mode 100644 public/media/js/user.js
(limited to 'application/modules/user/views/scripts')
diff --git a/application/modules/user/layouts/user.phtml b/application/modules/user/layouts/user.phtml
index 7d80d38..2fbdabf 100644
--- a/application/modules/user/layouts/user.phtml
+++ b/application/modules/user/layouts/user.phtml
@@ -16,6 +16,7 @@ echo $this->headScript()."\n";
+
Free clients
diff --git a/application/modules/user/views/scripts/session/index.phtml b/application/modules/user/views/scripts/session/index.phtml
index 412b113..c4225f3 100644
--- a/application/modules/user/views/scripts/session/index.phtml
+++ b/application/modules/user/views/scripts/session/index.phtml
@@ -47,14 +47,3 @@
pagination; ?>
-
diff --git a/public/media/js/user.js b/public/media/js/user.js
new file mode 100644
index 0000000..488ab45
--- /dev/null
+++ b/public/media/js/user.js
@@ -0,0 +1,19 @@
+$(document).ready(function(){
+ if($('.listelement .element').find('.dispnone').length >= 1){
+ $(this).find('.title').css('cursor','pointer');
+ $(this).find('.title').prepend("
");
+ $(this).find('.title').data('toggle','0');
+
+ $('.listelement .title').click(function(){
+ $(this).siblings('.dispnone').toggle();
+ if($(this).data('toggle') == '0'){
+ $(this).data('toggle','1');
+ $(this).find('.toggler img').attr('src','/media/img/down.png')
+ }
+ else{
+ $(this).data('toggle','0');
+ $(this).find('.toggler img').attr('src','/media/img/right.png')
+ }
+ });
+ }
+});
--
cgit v1.2.3-55-g7522