Subversion Repositories ORC

Rev

Rev 8 | Rev 23 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8 Rev 16
Line 304... Line 304...
304
  if ($type eq "button") {
304
  if ($type eq "button") {
305
		if ($name eq "Cancel") {
305
		if ($name eq "Cancel") {
306
		  if ($context eq "POSTSAVE") {
306
		  if ($context eq "POSTSAVE") {
307
		    return $h->input ({ type=>"button", value => $value ne '' ? $value : "Cancel" , onClick=>"window.location.href = \"manage_shifts.pl\"; return false;" });
307
		    return $h->input ({ type=>"button", value => $value ne '' ? $value : "Cancel" , onClick=>"window.location.href = \"manage_shifts.pl\"; return false;" });
308
		  } else {
308
		  } else {
309
		    return $h->input ({ type=>"button", value => $value ne '' ? $value : "Cancel" , onClick=>"history.back(); return false;" })
309
		    return $h->input ({ type=>"button", value => $value ne '' ? $value : "Cancel" , onClick=>"history.back(); return false;" });
310
		  }
310
		  }
311
		} else {
311
		} else {
312
			return $h->input ({ type=>"submit", value => $value, name=>$name })
312
			return $h->input ({ type=>"submit", value => $value, name=>$name })
313
		}
313
		}