diff options
Diffstat (limited to 'application/modules/user/views/scripts/bootmenu/index.phtml')
| -rw-r--r-- | application/modules/user/views/scripts/bootmenu/index.phtml | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/application/modules/user/views/scripts/bootmenu/index.phtml b/application/modules/user/views/scripts/bootmenu/index.phtml index 2e04618..5d298a5 100644 --- a/application/modules/user/views/scripts/bootmenu/index.phtml +++ b/application/modules/user/views/scripts/bootmenu/index.phtml @@ -1,5 +1,6 @@ <h1>BootMenu</h1> <?php if($this->notification != ''){echo $this->notification;} ?> +<div id='notification' style='display:none;'></div> <?php echo $this->searchform; ?> <?php echo $this->formButton('createbootmenu', 'Create BootMenu', array( 'onclick' => 'self.location="/user/bootmenu/createbootmenu/page/'.$this->page.'"', @@ -24,20 +25,20 @@ <div class='element<?php echo " $class";?>'> <div class='number'><?php echo $this->escape($bootmenu->getID()); ?></div> <div class='content'> - <div class='actions'> - <a href="<?php echo $this->url( - array( - 'module' => 'user', - 'controller' => 'bootmenu', - 'action' => 'defaultbootmenu', - 'bootmenuID' => $bootmenu->getID(), - 'page' => $this->page - ), - 'default', - true, false) ?>"> + <div class='actions'> <?php if($bootmenu->getDefaultbootmenu() == true): ?> - <img src='/media/img/default.png' alt='Checked as default'/></a> + <a><img src='/media/img/default.png' alt='Checked as default'/></a> <?php else: ?> + <a href="<?php echo $this->url( + array( + 'module' => 'user', + 'controller' => 'bootmenu', + 'action' => 'defaultbootmenu', + 'bootmenuID' => $bootmenu->getID(), + 'page' => $this->page + ), + 'default', + true, false) ?>"> <img src='/media/img/default_grey.png' alt='Not checked as default' /></a> <?php endif; ?> <a href="<?php echo $this->url( @@ -80,7 +81,7 @@ <div class='number'><?php echo $this->escape($bootmenuentry->getID()); ?></div> <div class='content'> <div class='actions'> - <a href="<?php echo $this->url( + <a class='play' href="<?php echo $this->url( array( 'controller' => 'resource', 'action' => 'getbootmenuentry', @@ -135,3 +136,11 @@ <?php echo $this->pagination; ?> +<script> +$(document).ready(function(){ + $('.actions .play').click(function (){ + $("#notification").load($(this).attr('href')).addClass('infobox').show(); + return false; + }); +}); +</script> |
