mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
Fixes issue #5936 - page count = infinity
Sets defaults to 200 if any dimension = 0
This commit is contained in:
@@ -73,6 +73,8 @@ $(function () {
|
||||
var listHeight = $('#media-library-main-list').height();
|
||||
var itemWidth = $('.thumbnail').first().width();
|
||||
var itemHeight = $('.thumbnail').first().height();
|
||||
if (itemHeight == 0) itemHeight = 200;
|
||||
if (itemWidth == 0) itemWidth = 200;
|
||||
var draftText = $("#media-library").data("draft-text");
|
||||
|
||||
var itemsPerRow = Math.floor(listWidth / itemWidth);
|
||||
|
Reference in New Issue
Block a user