Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: sitescripts/reports/static/reports.js

Issue 8793015: Reports - user profile (Closed)
Left Patch Set: Reports - user profile Created Nov. 7, 2012, 9:38 a.m.
Right Patch Set: Reports - user profile Created Nov. 7, 2012, 11:39 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « .sitescripts.example ('k') | sitescripts/reports/template/report.html » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 if (typeof localStorage == "undefined") 1 if (typeof localStorage == "undefined")
2 window.localStorage = {}; 2 window.localStorage = {};
3 var templates; 3 var templates;
4 4
5 function migrateCookies() 5 function migrateCookies()
6 { 6 {
7 var cookies = document.cookie.split(/\s*;\s*/); 7 var cookies = document.cookie.split(/\s*;\s*/);
8 for (var i = 0; i < cookies.length; i++) 8 for (var i = 0; i < cookies.length; i++)
9 { 9 {
10 if (/^(.*?)=(.*)/.test(cookies[i])) 10 if (/^(.*?)=(.*)/.test(cookies[i]))
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 notifyField.checked = true; 127 notifyField.checked = true;
128 updateTemplateButtons(); 128 updateTemplateButtons();
129 } 129 }
130 }, false); 130 }, false);
131 131
132 var statusField = document.getElementById("statusField"); 132 var statusField = document.getElementById("statusField");
133 statusField.value = status; 133 statusField.value = status;
134 134
135 var usefulness = 0; 135 var usefulness = 0;
136 var usefulnessCell = document.getElementById("usefulnessCell"); 136 var usefulnessCell = document.getElementById("usefulnessCell");
137 if (statusCell && statusCell.hasAttribute("usefulness"))
138 usefulness = statusCell.getAttribute("usefulness");
139 // backcompatibility, should remove in future
137 if (usefulnessCell) 140 if (usefulnessCell)
138 usefulness = usefulnessCell.getAttribute("value"); 141 usefulness = usefulnessCell.getAttribute("value");
139 setRadio(radios, usefulness); 142 setRadio(radios, usefulness);
140 setRadioListener(radios, updateTemplates); 143 setRadioListener(radios, updateTemplates);
141 144
142 updateTemplates(); 145 updateTemplates();
143 statusField.focus(); 146 statusField.focus();
144 } 147 }
145 } 148 }
146 149
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 var spans = nodes[j].getElementsByTagName("span"); 393 var spans = nodes[j].getElementsByTagName("span");
391 for (var k = 0; k < spans.length; k++) 394 for (var k = 0; k < spans.length; k++)
392 if (spans[k].hasAttribute("title")) 395 if (spans[k].hasAttribute("title"))
393 spans[k].setAttribute("title", toLocalDate(spans[k].getAttribute("titl e"))); 396 spans[k].setAttribute("title", toLocalDate(spans[k].getAttribute("titl e")));
394 } 397 }
395 } 398 }
396 } 399 }
397 400
398 window.addEventListener("DOMContentLoaded", initTables, false); 401 window.addEventListener("DOMContentLoaded", initTables, false);
399 window.addEventListener("DOMContentLoaded", changeDates, false); 402 window.addEventListener("DOMContentLoaded", changeDates, false);
LEFTRIGHT

Powered by Google App Engine
This is Rietveld