Small bug fixes #13

Merged
merged 2 commits into from Jun 12, 2012
Jump to file or symbol
Failed to load files and symbols.
+4 −4
Split
@@ -145,13 +145,13 @@ public function getCMSFields()
if($this->ID)
{
$color = '#E88F31';
- $links = '<a target="_blank" href="' . $this->Link('?stage=Stage') . '">Draft</a>';
+ $links = '<a target="_blank" href="' . $this->Link() . '?stage=Stage">Draft</a>';
$status = $this->Status;
if($this->Status == 'Published')
{
$color = '#000';
- $links .= ' | <a target="_blank" href="' . $this->Link('?stage=Live') . '">Published</a>';
+ $links .= ' | <a target="_blank" href="' . $this->Link() . '?stage=Live">Published</a>';
if($this->hasChangesOnStage())
{
@@ -1,8 +1,8 @@
(function($) {
$(document).ready(function() {
var doList = function() {
- var currentModel = $('#ModelClassSelector').children('select');
- var currentModelName = $('#SearchForm_holder .tabstrip a').text();
+ var currentModel = $('#SearchForm_holder .tabstrip a').attr('href');
+ var currentModelName = currentModel.substr(currentModel.indexOf("_") + 1);
var strFormname = "#Form_SearchForm_" + currentModelName;
$(strFormname).submit();
return false;