From b70f65a7d07ea8479fc40dd53ab3e5e192fb84db Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sat, 22 Nov 2014 20:43:51 +0100 Subject: [PATCH] Front-end rewrite #275 --- dist/view.js | Bin 104955 -> 104898 bytes src/scripts/view/main.js | 71 ++++++++++++++++++++++----------------- 2 files changed, 40 insertions(+), 31 deletions(-) diff --git a/dist/view.js b/dist/view.js index 024a2fb739d51c9b4a6659e0127a36bc6de90283..b475e0b879dc2a8225c5626348435a1649cf9314 100644 GIT binary patch delta 1129 zcmYjPU1%It6y{8tU1`|t+BRvbn>9Nm+Zi)EO=C%u-HuE5wrW6yM6uX)ZKs*L-Pzg9 zY-aBM#B4-FXu*d*j4%YGpkf{rQ5kf_mqKYlv5HCs(dvs}q1D$YgjUaFt?kQq?>Xl? zf8V{Ee(0hf`skAg5ckta1q?sge-zL-9X){fW^^ComFPI)-@)A%VuKtQZf?g6a+i0! zhTL~$!L31>%ALwI~RJ&Ym$>zVa%oX9qa3q3?K{P&K&9qJ)Walcy|aJ47Dz+UO6#BInwHpdXJ z%sq@~&JVhg`SCs?mvmE;XOBpCBa0ZnHou8Qe|)BYI~v!EA{zI<_yG>?UO4eF;?hYH zGXy4PZOZDlIbyC##J_Yh6o~PaiXHq7HNxQ>qMNh^{kV3mH%jE1L+hI56lgKnC0wZ> z&#vqWBsx>I(D%rq-?Pu;TT{c-+A#T!n0*hB18F9@S9SBCRGHN@@|Aldh@10=D z$Jqre6RwYPXh_XC;%qaCXf)3x?h)8g)ULi_R@6&^P{%&8mVmi4t($?yW9vL;Fn8(p zkgu*^&Y_rlfBzwPzgyQsSli!rBNnJXaPw;5yzvLO9gjaZGJKer%F3!_bmToShq2Bp z4*(_-@3}Zk1L>TL!yXWb!kgBDWio0qKJ&=L0Yy=0Zp+ISEln@!RO2%O@xC2~RD?(Z zZMTy|Or_A(lYq%M5yyF6s^`l1X&kHCpvQDp7D`fKK_cE<0(N6ZJpmea{3Zd>`@ryi zO~G&Iy|@?N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Pjt@BiVzz&caj@Z+jPDfGzeftgGwH%Dgi z9wN13y*O?A%Pt;+"); - else imageview.html("
"); + if (isPhotoSmall(data)) imageview.html("
"); + else imageview.html("
"); - imageview.removeClass('fadeOut').addClass('fadeIn').show(); + imageview + .removeClass('fadeOut') + .addClass('fadeIn') + .show(); infobox.html(build.infoboxPhoto(data, true)).show(); @@ -101,10 +108,12 @@ loadPhotoInfo = function(photoID) { } -ajaxError = function(jqXHR, textStatus, errorThrown) { +ajaxError = function(errorThrown, params, data) { - console.log(jqXHR); - console.log(textStatus); - console.log(errorThrown); + console.error({ + description: errorThrown, + params: params, + response: data + }); } \ No newline at end of file