mirror of
https://github.com/Squidly271/community.applications.git
synced 2025-06-03 14:52:13 +08:00
remove old window width from data structure. Use variable instead
This commit is contained in:
parent
aaa40e6c11
commit
70ac4807b7
BIN
archive/community.applications-2017.10.21.txz
Normal file
BIN
archive/community.applications-2017.10.21.txz
Normal file
Binary file not shown.
@ -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':
|
||||
|
Loading…
x
Reference in New Issue
Block a user