Skip to content

Commit

Permalink
Merge pull request #46 from sanderha/fix-to-work-with-translatable-js
Browse files Browse the repository at this point in the history
Fixes to be more compatible with Translatable module's javascript
  • Loading branch information
stevie-mayhew committed Feb 23, 2016
2 parents 76e2b65 + 97862f7 commit d7927a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 1 addition & 8 deletions code/Extensions/TranslatableCatalogExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
class TranslatableCatalogExtension extends Extension
{

/**
* @var array
*/
private static $allowed_actions = [
'language'
];

/**
* @return mixed
*/
Expand Down Expand Up @@ -72,7 +65,7 @@ public function getLanguageSelectorForm()
$fields = FieldList::create($this->getLanguageField());
return Form::create(
$this->owner,
'language',
'LangForm',
$fields,
FieldList::create(FormAction::create(
'language',
Expand Down
4 changes: 3 additions & 1 deletion code/templates/ModelAdmin_Tools.ss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
<% end_if %>
<% if $LanguageSelectorForm %>
<h3 class="cms-panel-header"><% _t('ModelAdmin_Tools_ss.LANGUAGE', 'Language') %></h3>
$LanguageSelectorForm
<div class="CMSMain">
$LanguageSelectorForm
</div>
<% end_if %>
</div>
<div class="cms-panel-content-collapsed">
Expand Down

0 comments on commit d7927a3

Please sign in to comment.