From 3be368dd1161f913dfe264d145627570300f7938 Mon Sep 17 00:00:00 2001 From: ismud Date: Tue, 20 Oct 2015 18:57:32 +0200 Subject: [PATCH] Update Translatable.php --- code/model/Translatable.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/model/Translatable.php b/code/model/Translatable.php index f9569f3..2b99a26 100755 --- a/code/model/Translatable.php +++ b/code/model/Translatable.php @@ -1085,12 +1085,11 @@ class Translatable extends DataExtension implements PermissionProvider { if($canAddLocale) { // Only add create button if new languages are available $tab->push( - $createButton = InlineFormAction::create( + $createButton = FormAction::create( 'createtranslation', _t('Translatable.CREATEBUTTON', 'Create') )->addExtraClass('createTranslationButton') ); - $createButton->includeDefaultJS(false); // not fluent API... } else { $tab->removeByName('NewTransLang'); $tab->push(new LiteralField(