remove old window width from data structure. Use variable instead
parent
aaa40e6c11
commit
70ac4807b7
Binary file not shown.
|
@ -147,9 +147,9 @@ var categoryDesc = {
|
|||
|
||||
var checkStaleVar = setInterval(function(){ checkStale(); },60000);
|
||||
|
||||
$(function(){
|
||||
$("#sortorder").attr("data-oldWindowWidth",getWindowWidth());
|
||||
var data_oldWindowWidth = getWindowWidth();
|
||||
|
||||
$(function(){
|
||||
<?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':
|
||||
|
|
Loading…
Reference in New Issue