Merge pull request #365 from lunika/seo
Change some behaviors on SEO tab
This commit is contained in:
@@ -44,13 +44,11 @@ trait SeoFieldsTrait
|
||||
if (! in_array('meta_title', $exclude))
|
||||
$this->formBuilder
|
||||
->add('meta_title', 'text', array(
|
||||
'constraints' => array(
|
||||
new NotBlank()
|
||||
),
|
||||
'label' => Translator::getInstance()->trans('Page Title'),
|
||||
'label_attr' => array(
|
||||
'for' => 'meta_title'
|
||||
)
|
||||
),
|
||||
'required' => false
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@@ -216,6 +216,8 @@ form_content = {$smarty.capture.delete_folder_dialog nofilter}
|
||||
{/javascripts}
|
||||
<script>
|
||||
$(function() {
|
||||
// Load active tab
|
||||
|
||||
$.imageUploadManager.initImageDropZone();
|
||||
$.documentUploadManager.initDocumentDropZone();
|
||||
|
||||
@@ -227,7 +229,7 @@ form_content = {$smarty.capture.delete_folder_dialog nofilter}
|
||||
|
||||
// Show proper tab, if defined
|
||||
{if ! empty($current_tab)}
|
||||
$('#tabbed-menu a[href="#{$current_tab}"]').tab('show')
|
||||
$('.nav-tabs a[href="#{$current_tab}"]').trigger("click");
|
||||
{/if}
|
||||
|
||||
$('a.delete-folder').click(function(e) {
|
||||
@@ -267,9 +269,6 @@ form_content = {$smarty.capture.delete_folder_dialog nofilter}
|
||||
});
|
||||
|
||||
// Initialize folder (id=
|
||||
{$folder_id})
|
||||
select
|
||||
value
|
||||
{if $folder_id != 0}
|
||||
$('#folder_id').val("{$folder_id}").change();
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user