6.0.0-git
2019-03-19

[#1313] js error
Summary js error
Queue Turba
Queue Version 2.0
Type Bug
State Resolved
Priority 2. Medium
Owners Horde Developers (at)
Requester m.zdila (at) episoftware (dot) com
Created 2005-02-07 (5153 days ago)
Due
Updated 2005-02-09 (5151 days ago)
Assigned 2005-02-07 (5153 days ago)
Resolved 2005-02-09 (5151 days ago)
Milestone
Patch No

History
2005-02-09 01:29:33 Jan Schneider Comment #2
State ⇒ Resolved
Reply to this comment
Fixed in CVS and 2.0.1.
2005-02-07 11:25:59 Jan Schneider State ⇒ Assigned
Assigned to Horde DevelopersHorde Developers
 
2005-02-07 09:38:50 m (dot) zdila (at) episoftware (dot) com Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Summary ⇒ js error
Queue ⇒ Turba
Reply to this comment
in file templates/browse/column_headers.inc 
$prefs->getValue('sortdir') returns for me empty string, therefore it 
generates invalid javascript code. Tere is a patch:



13c13

<         <a class="widget" href="" onclick="Sort(0, <?php echo 
$prefs->getValue('sortdir') ?>); return false;"><?php echo 
$attributes['name']['label'] ?></a>

---
         <a class="widget" href="" onclick="Sort(0, <?php echo 
intval($prefs->getValue('sortdir')) ?>); return false;"><?php echo 
$attributes['name']['label'] ?></a>
18c18

<         <a class="widget" href="" onclick="Sort(<?php echo $i ?>, 
<?php echo $prefs->getValue('sortdir') ?>); return false;"><?php echo 
$attributes[$columns[$i-1]]['label'] ?></a>

---
         <a class="widget" href="" onclick="Sort(<?php echo $i ?>, 
<?php echo intval($prefs->getValue('sortdir')) ?>); return 
false;"><?php echo $attributes[$columns[$i-1]]['label'] ?></a>

Saved Queries