@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Let datepicker jump one month forward

Test Plan: Clicked on next month, didn't see year 20121.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4277

vrana e05d8d70 f2639e52

+8 -10
+1 -1
src/__celerity_resource_map__.php
··· 1350 1350 ), 1351 1351 'javelin-behavior-fancy-datepicker' => 1352 1352 array( 1353 - 'uri' => '/res/ae843244/rsrc/js/application/core/behavior-fancy-datepicker.js', 1353 + 'uri' => '/res/0a1bc610/rsrc/js/application/core/behavior-fancy-datepicker.js', 1354 1354 'type' => 'js', 1355 1355 'requires' => 1356 1356 array(
+7 -9
webroot/rsrc/js/application/core/behavior-fancy-datepicker.js
··· 80 80 81 81 var read_date = function() { 82 82 var i = get_inputs(); 83 - value_y = i.y.value; 84 - value_m = i.m.value; 85 - value_d = i.d.value; 83 + value_y = +i.y.value; 84 + value_m = +i.m.value; 85 + value_d = +i.d.value; 86 86 }; 87 87 88 88 var write_date = function() { ··· 216 216 switch (p[0]) { 217 217 case 'm': 218 218 // User clicked left or right month selection buttons. 219 - value_m = value_m - 1; 220 219 value_m = value_m + parseInt(p[1]); 221 - if (value_m >= 12) { 220 + if (value_m > 12) { 222 221 value_m -= 12; 223 - value_y += 1; 224 - } else if (value_m < 0) { 222 + value_y++; 223 + } else if (value_m <= 0) { 225 224 value_m += 12; 226 - value_y -= 1; 225 + value_y--; 227 226 } 228 - value_m = value_m + 1; 229 227 break; 230 228 case 'd': 231 229 // User clicked a day.