remove old window width from data structure. Use variable instead

pull/2/head
Squidly271 2017-10-21 09:02:40 -04:00
parent aaa40e6c11
commit 70ac4807b7
2 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@ -146,10 +146,10 @@ var categoryDesc = {
};
var checkStaleVar = setInterval(function(){ checkStale(); },60000);
var data_oldWindowWidth = getWindowWidth();
$(function(){
$("#sortorder").attr("data-oldWindowWidth",getWindowWidth());
<?if ($backTopTopIncluded == "false"):?>
var backtotopoffset = 250;
var backtotopduration = 500;
@ -1345,8 +1345,8 @@ function resizeDisplay() {
window.resizeEvt;
$(window).resize(function(){
var newWidth = getWindowWidth();
var oldWidth = $("#sortorder").attr("data-oldWindowWidth");
$("#sortorder").attr("data-oldWindowWidth",newWidth);
var oldWidth = data_oldWindowWidth;
data_oldWindowWidth = newWidth;
var view = JSON.parse($("#sortorder").attr("data-sortorder"));
switch ( view.viewMode ) {
case '#viewDetail':