Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

Commit

Permalink
add route id to add bid url if ajax fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Nabeel Shahzad committed Feb 22, 2011
1 parent 5c0039d commit 55707c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions changelog.htm
Expand Up @@ -46,6 +46,7 @@ <h1>Build ##REVISION## (Version 2.1.##REVISION##)</h1>
<strong>Templates Changed</strong>:</p>
<ul>
<li>profile_main.tpl - Included payadjust to total money</li>
<li>schedule_results.tpl - Added route ID to add bid URL, in case AJAX fails, then bid still gets added</li>
</ul>

<h1>Build 934 (Version 2.1.934)</h1>
Expand Down
12 changes: 4 additions & 8 deletions core/templates/schedule_results.tpl
Expand Up @@ -44,17 +44,13 @@ foreach($allroutes as $route) {

<?php
# Don't allow overlapping bids and a bid exists
if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0)
{
if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0) {
?>
<a id="<?php echo $route->id; ?>" class="addbid"
href="<?php echo actionurl('/schedules/addbid');?>">Add to Bid</a>
href="<?php echo actionurl('/schedules/addbid/?id='.$route->id);?>">Add to Bid</a>
<?php
}
else
{
if(Auth::LoggedIn())
{
} else {
if(Auth::LoggedIn()) {
?>
<a id="<?php echo $route->id; ?>" class="addbid"
href="<?php echo url('/schedules/addbid');?>">Add to Bid</a>
Expand Down

0 comments on commit 55707c4

Please sign in to comment.