Permalink
Browse files

rebuild deploy homepage

  • Loading branch information...
1 parent d391d8e commit 44bb4a941df8f15c225f164ddcce2d839bcdb5e4 @CNBorn committed May 15, 2012
Showing with 0 additions and 88 deletions.
  1. +0 −88 pages/calit2/index_deploy.html
@@ -187,35 +187,6 @@
});
}
-
-var getItemfromData = function(data) {
- var id = data['id'];
- var item_name = data['name'];
- var item_comment = data['comment'];
- var item_expectdate = data['expectdate'];
- var item_routine = data['routine'];
- return {
- "comment": item_comment,
- "is_duetoday": data['is_duetoday'],
- "donedate": data['donedate'],
- "tags": null,
- "done": data['done'],
- "date": data['date'],
- "id": id,
- "category": data['done'],
- "duration": data['duration'],
- "name": item_name,
- "expectdate": item_expectdate,
- "routine": item_routine,
- "is_duetomorrow": data['is_duetomorrow'],
- "is_dueyesterday": data['is_dueyesterday'],
- isnottodaypanel: function() {
- return !is_today_panel();
- }
- }
-}
-
-
var refreshItemData = function(item_id) {
$.ajax({type: "GET",
url: "/j/item/" + item_id,
@@ -265,16 +236,6 @@
return this;
}
-function showLoadingPanel() {
- $("#loadingpanel").center();
- $("#loadingpanel").fadeIn('normal');
-}
-
-function hideLoadingPanel() {
- $("#loadingpanel").fadeOut('normal');
-}
-
-
//Controls the Toggle.
$('#toggle').click(function(){
$(this).toggleClass("down");
@@ -304,39 +265,12 @@
});
}
-
-function is_inbox_activated() {
- return $("#tab_inbox").hasClass("activenavitab");
-}
-
-
$(window).scroll(function() {
if ($(window).scrollTop() == $(document).height() - $(window).height() && !retriving_more_items && !no_more_items && is_inbox_activated()){
retrive_more_items();
}
});
-
-function tabs_RemoveActive() {
- var tab_list = ['#tab_inbox', '#tab_dailyroutine', '#tab_tomorrow', '#tab_done'];
- for (i=0;i<=tab_list.length - 1;i++){
- if ($(tab_list[i]).hasClass("activenavitab")){
- $(tab_list[i]).removeClass('activenavitab');
- }
- if (!$(tab_list[i]).hasClass("navitab")){
- $(tab_list[i]).addClass('navitab');
- }
- }
-}
-
-function tabs_MakeActive(obj_div)
-{
- tabs_RemoveActive();
- str_divname = "#" + obj_div.id;
- $(str_divname).removeClass("navitab");
- $(str_divname).addClass('activenavitab');
-}
-
function render_items(msg,type)
{
render = '';
@@ -387,30 +321,8 @@
render += "</ul>";
$('#itemlist').html(render);
}
-} function render_donelog(msg){ $('#itemlist').html(''); render = '';
- index = 0;
- render += "<ul>";
- item_collection = {};
- for(i in msg){
- for(j in msg[i]){
- item = msg[i][j];
- item_collection[item.id] = item;
- if(index % 2){
- item.css = 'even' } else {
- item.css = 'odd'
- }
- var template = $("script#itemlist-template").html();
- item_template = Mustache.to_html(template, item);
- render += item_template;
- index++;
- }
- }
- render += "</ul>";
- $('#itemlist').html(render);
}
-
-
//Functions for Tabs.
$('#tab_inbox').click(function() {
tabs_MakeActive(this);

0 comments on commit 44bb4a9

Please sign in to comment.