SPR-972 add more info to the breadcrumb
* add the current admin plugin to the breadcrumb * use proper translations for the various modes * do no longer rely on JavaScript for the enhanced breadcrumb * add image name in breadcrumb for detail view
This commit is contained in:
parent
52ef6e091d
commit
84f9464195
5 changed files with 56 additions and 37 deletions
|
@ -1,30 +0,0 @@
|
|||
/**
|
||||
* Sets up the breadcrumb behaviour (adds do / ACT status information)
|
||||
* or adds tpl_getLang('image_detail') on detail template
|
||||
*/
|
||||
(function($) {
|
||||
|
||||
|
||||
var setBreadcrumbSuffix = function(){
|
||||
|
||||
var $breadcrumb = $('.breadcrumbs');
|
||||
if (!$breadcrumb.length) return;
|
||||
|
||||
|
||||
/**
|
||||
* add ACT status to breadcrumb (if not show)
|
||||
* or tpl_getLang('image_detail') on detail.php
|
||||
*/
|
||||
var mode = $breadcrumb.attr('data-do');
|
||||
if(mode && mode.indexOf('show') !== 0){
|
||||
var markup = '<bdi lang="en"><span class="curid"> : <strong>' + mode + '</strong></span></bdi>';
|
||||
$breadcrumb.find('p').append(markup);
|
||||
}
|
||||
};
|
||||
|
||||
$(function(){
|
||||
setBreadcrumbSuffix();
|
||||
});
|
||||
|
||||
|
||||
})(jQuery);
|
Loading…
Add table
Add a link
Reference in a new issue