Skip to content

Commit

Permalink
Dev: w3c validation, welcome screen
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jan 4, 2016
1 parent 21e3842 commit 6adb8ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion application/extensions/PannelBoxWidget/views/box.php
@@ -1,5 +1,5 @@
<div class="col-lg-2 col-sm-3 <?php echo $offset; ?>">
<div class="panel panel-primary panel-clickable" id="pannel-<?php echo $position;?>" aria-data-url="<?php echo $url; ?>" >
<div class="panel panel-primary panel-clickable" id="pannel-<?php echo $position;?>" data-url="<?php echo $url; ?>" >
<div class="panel-heading">
<h3 class="panel-title"><?php echo $title;?></h3>
</div>
Expand Down
6 changes: 3 additions & 3 deletions application/views/admin/super/welcome.php
Expand Up @@ -27,7 +27,7 @@
<!-- Jumbotron -->
<div class="row">
<div class="jumbotron" id="welcome-jumbotron">
<img src="<?php echo LOGO_URL;?>" id="lime-logo" class="profile-img-card img-responsive center-block" />
<img alt="logo" src="<?php echo LOGO_URL;?>" id="lime-logo" class="profile-img-card img-responsive center-block" />
<p class="hidden-xs" ><?php echo PRESENTATION; // Defined in AdminController?></p>
</div>
</div>
Expand Down Expand Up @@ -145,7 +145,7 @@

<!-- Boxes for smartphones-->
<div class="row hidden-sm hidden-md hidden-lg ">
<div class="panel panel-primary panel-clickable" id="pannel-2" aria-data-url="/limesurvey/LimeSurveyNext/index.php/admin/survey/sa/listsurveys" style="opacity: 1; top: 0px;">
<div class="panel panel-primary panel-clickable" id="pannel-7" data-url="/limesurvey/LimeSurveyNext/index.php/admin/survey/sa/listsurveys" style="opacity: 1; top: 0px;">
<div class="panel-heading">
<h3 class="panel-title"><?php eT('List surveys');?></h3>
</div>
Expand All @@ -157,7 +157,7 @@
</div>
</div>

<div class="panel panel-primary panel-clickable" id="pannel-3" aria-data-url="/limesurvey/LimeSurveyNext/index.php/admin/globalsettings" style="opacity: 1; top: 0px;">
<div class="panel panel-primary panel-clickable" id="pannel-8" data-url="/limesurvey/LimeSurveyNext/index.php/admin/globalsettings" style="opacity: 1; top: 0px;">
<div class="panel-heading">
<h3 class="panel-title"><?php eT('Edit global settings');?></h3>
</div>
Expand Down
6 changes: 3 additions & 3 deletions styles/Sea_Green/scripts/panelclickable.js
Expand Up @@ -3,10 +3,10 @@
* Like in front page, or quick actions
*/
$(document).ready(function(){
$(".panel-clickable").click(function(){
$(".panel-clickable").click(function(){
$that = $(this);
if($that.attr('aria-data-url')!=''){
window.location.href = $that.attr('aria-data-url');
if($that.data('url')!=''){
window.location.href = $that.data('url');
}
});
});

0 comments on commit 6adb8ce

Please sign in to comment.