1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 18:24:57 +02:00
This commit is contained in:
Ryan Cramer
2019-02-08 15:21:25 -05:00
parent 09a7d8e7ed
commit 839d9325cc
2 changed files with 7 additions and 7 deletions

View File

@@ -28,7 +28,7 @@ function InputfieldImage($) {
var cookieData = null; var cookieData = null;
// grid items to retry for sizing by setGridSize() methods // grid items to retry for sizing by setGridSize() methods
var retryGridItems = []; var retryGridItems = []; // i.e. [ { item: $item, gridSize: 123 } ]
// true when the grid is being resized with the slider // true when the grid is being resized with the slider
var gridSliding = false; var gridSliding = false;
@@ -1105,8 +1105,8 @@ function InputfieldImage($) {
if(retryGridItems.length) setTimeout(function() { if(retryGridItems.length) setTimeout(function() {
while(retryGridItems.length) { while(retryGridItems.length) {
var $item = retryGridItems.pop(); var item = retryGridItems.pop();
setGridSizeItem($item, gridSize, ragged); setGridSizeItem(item.item, item.gridSize, ragged);
} }
}, 150); }, 150);
} }
@@ -1253,7 +1253,7 @@ function InputfieldImage($) {
height: gridSize + 'px' height: gridSize + 'px'
}); });
} else { } else {
retryGridItems.push($item); retryGridItems.push({ item: $item, gridSize: gridSize });
$item.attr('data-tries', tries + 1); $item.attr('data-tries', tries + 1);
} }
} }

File diff suppressed because one or more lines are too long