mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Admin-ui: Grid carousel slides are now auto-normalized.
This commit is contained in:
@@ -723,7 +723,7 @@ class admin_shortcodes
|
|||||||
{
|
{
|
||||||
if(e_DEBUG !== false)
|
if(e_DEBUG !== false)
|
||||||
{
|
{
|
||||||
return "<div class='navbar-right navbar-text admin-icon-debug' title='DEBUG MODE ACTIVE'>".e107::getParser()->toGlyph('fa-bug', array('class'=>'text-warning'))." </div>";
|
return "<div class='navbar-right nav-admin navbar-text admin-icon-debug' title='DEBUG MODE ACTIVE'>".e107::getParser()->toGlyph('fa-bug', array('class'=>'text-warning'))." </div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -754,7 +754,7 @@ class admin_shortcodes
|
|||||||
$outboxUrl = e_PLUGIN.'pm/admin_config.php?mode=outbox&action=list&iframe=1';
|
$outboxUrl = e_PLUGIN.'pm/admin_config.php?mode=outbox&action=list&iframe=1';
|
||||||
$composeUrl = e_PLUGIN.'pm/admin_config.php?mode=outbox&action=create&iframe=1';
|
$composeUrl = e_PLUGIN.'pm/admin_config.php?mode=outbox&action=create&iframe=1';
|
||||||
|
|
||||||
$text = '<ul class="nav navbar-nav navbar-right">
|
$text = '<ul class="nav nav-admin navbar-nav navbar-right">
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a class="dropdown-toggle" title="'.LAN_PM.'" role="button" data-toggle="dropdown" href="#" >
|
<a class="dropdown-toggle" title="'.LAN_PM.'" role="button" data-toggle="dropdown" href="#" >
|
||||||
'.$tp->toGlyph('fa-envelope').$countDisp.'<b class="caret"></b>
|
'.$tp->toGlyph('fa-envelope').$countDisp.'<b class="caret"></b>
|
||||||
|
@@ -4802,7 +4802,7 @@ class e_admin_ui extends e_admin_controller_ui
|
|||||||
protected function handleListCopyBatch($selected)
|
protected function handleListCopyBatch($selected)
|
||||||
{
|
{
|
||||||
// Batch Copy
|
// Batch Copy
|
||||||
|
|
||||||
$res = $this->getTreeModel()->copy($selected);
|
$res = $this->getTreeModel()->copy($selected);
|
||||||
// callback
|
// callback
|
||||||
$this->afterCopy($res, $selected);
|
$this->afterCopy($res, $selected);
|
||||||
|
@@ -74,8 +74,11 @@ a.core-mainpanel-link-icon:hover { text-decoration: none; filter: none; }
|
|||||||
.e-overlay .thumbnail { margin:0; }
|
.e-overlay .thumbnail { margin:0; }
|
||||||
|
|
||||||
.admin-ui-grid img.fallback { opacity: 0.3; }
|
.admin-ui-grid img.fallback { opacity: 0.3; }
|
||||||
|
/*
|
||||||
|
|
||||||
#admin-ui-carousel .carousel-inner { min-height: 65vh; }
|
#admin-ui-carousel .carousel-inner { min-height: 65vh; }
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -733,6 +733,75 @@ $(document).ready(function()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$('.carousel').on('slid.bs.carousel', function () {
|
||||||
|
var currentIndex = $(this).find('.active').index();
|
||||||
|
var text = (currentIndex + 1);
|
||||||
|
$('#admin-ui-carousel-index').text(text);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
$(window).load(function() {
|
||||||
|
|
||||||
|
$('.carousel').each(function(){
|
||||||
|
|
||||||
|
$(this).carouselHeights();
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
// Normalize Bootstrap Carousel Heights
|
||||||
|
|
||||||
|
$.fn.carouselHeights = function() {
|
||||||
|
|
||||||
|
var items = $(this).find('.item'), // grab all slides
|
||||||
|
|
||||||
|
heights = [], // create empty array to store height values
|
||||||
|
|
||||||
|
tallest, // create variable to make note of the tallest slide
|
||||||
|
|
||||||
|
call;
|
||||||
|
|
||||||
|
var normalizeHeights = function() {
|
||||||
|
|
||||||
|
items.each(function() { // add heights to array
|
||||||
|
|
||||||
|
heights.push($(this).outerHeight());
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
tallest = Math.max.apply(null, heights); // cache largest value
|
||||||
|
|
||||||
|
items.css('height', tallest);
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
normalizeHeights();
|
||||||
|
|
||||||
|
$(window).on('resize orientationchange', function() {
|
||||||
|
|
||||||
|
// reset vars
|
||||||
|
|
||||||
|
tallest = 0;
|
||||||
|
|
||||||
|
heights.length = 0;
|
||||||
|
|
||||||
|
items.css('height', ''); // reset height
|
||||||
|
|
||||||
|
if(call){
|
||||||
|
|
||||||
|
clearTimeout(call);
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
call = setTimeout(normalizeHeights, 100); // run it again
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$("a.menuManagerSelect").click(function(e){
|
$("a.menuManagerSelect").click(function(e){
|
||||||
|
|
||||||
|
|
||||||
|
@@ -719,12 +719,7 @@ $(document).ready(function()
|
|||||||
$(".e-expandit").show();
|
$(".e-expandit").show();
|
||||||
|
|
||||||
// $(".e-spinner").spinner(); //FIXME breaks tooltips
|
// $(".e-spinner").spinner(); //FIXME breaks tooltips
|
||||||
|
|
||||||
$('.carousel').on('slid.bs.carousel', function () {
|
|
||||||
var currentIndex = $(this).find('.active').index();
|
|
||||||
var text = (currentIndex + 1);
|
|
||||||
$('#admin-ui-carousel-index').text(text);
|
|
||||||
});
|
|
||||||
|
|
||||||
//check all
|
//check all
|
||||||
$("#check-all").click(function(event){
|
$("#check-all").click(function(event){
|
||||||
|
Reference in New Issue
Block a user