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