Ignore:
Timestamp:
Mar 13, 2009, 5:33:34 PM (15 years ago)
Author:
jazz
Message:
  • script/jquery-ui.js & jquery.js : 更新 jQuery UI 到 1.7 跟相配合的 jQuery 版本(min版)
  • script/oceandb.js: 修改 accordion 選單屬性為 autoHeight = false, collapsible = true
  • css/index.css : 微調 accordion 背景顏色
File:
1 edited

Legend:

Unmodified
Added
Removed
  • oceandb/jQuery_Prototype/script/oceandb.js

    r72 r74  
    2626      if(item.type_id != type_id )
    2727      {     
    28   $('#map-menu').append("<div><h3><a href='#'>" + item.type_name 
     28  $('#map-menu').append("<h3><a href='#'>" + item.type_name 
    2929            + " (" + PARENT_ID[item.parent_id] + ")</a>"
    3030            + "</h3><div><ul id='map-menu-" + item.type_id
    31             + "'></ul><br/></div></div>");
     31            + "'></ul></div>");
    3232  type_id = item.type_id;
    3333  // 當產生新的 DOM 時,把計數回歸到 1 產生 map-menu-type_id-count 的 id
    34   count = 1;   
     34  count = 1;   
     35  /* TODO: 加入全選處理函式
    3536  $("#map-menu-" + item.type_id).append("<li><input type='checkbox'>"
    3637           + "<font color='red'><b>=== 以下全選 ===</b></font>"
     
    4243       alert("map-menu-" + item.type_id + " is unclicked!");
    4344  });
     45  */
    4446      }
    4547      // 根據 type_id 逐一加入 owner_org
     
    8789    // 註: 這行的擺放位置很重要,放在迴圈外會造成 CSS 樣式(class)的問題
    8890    // 主因: getJSON 是非同步處理,得把動態產生 DOM 的相關設定擺在 callback 中
    89     $('#map-menu').accordion({ header: "h3" });
     91    $('#map-menu').accordion({
     92      header: "h3",
     93      autoHeight: false,
     94      collapsible: true
     95    });
    9096
    9197    // 完成從 JSON 讀入資料,因此把 loading 提示移除。
Note: See TracChangeset for help on using the changeset viewer.