Changeset 16457


Ignore:
Timestamp:
2007/10/16 22:44:59 (17 years ago)
Author:
adachi
Message:

コメント追加, リファクタリング

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/html/user_data/templates/default/js/ownersstore.js

    r16444 r16457  
    44 * Copyright (c) 2007 cody lindley 
    55 * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php 
     6*/ 
     7 
     8/* 
     9 * ownersstore.js 
     10 * 
     11 * オーナーズストア通信用ライブラリ. 
     12 * CSSやjavascriptのオーバーレイ処理はThickboxのものを使っています. 
     13 * 
    614*/ 
    715 
     
    8088    // show results 
    8189    show_result: function(resp, status) { 
    82         var title = status; 
     90        var title    = resp.status; 
    8391        var contents = resp.body; 
     92        var errcode  = resp.errcode || ''; 
    8493 
    8594        var TB_WIDTH = 700; 
     
    91100            $("#TB_window").append( 
    92101                "<div id='TB_title'>" 
    93               + "  <div id='TB_ajaxWindowTitle'>" + title + "</div>" 
     102              + "  <div id='TB_ajaxWindowTitle'></div>" 
    94103              + "  <div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' onclick='OwnersStore.remove();'>close</a></div>" 
    95104              + "</div>" 
     
    102111            $("#TB_ajaxContent")[0].style.height = ajaxContentH +"px"; 
    103112            $("#TB_ajaxContent")[0].scrollTop = 0; 
    104             $("#TB_ajaxWindowTitle").html(contents); 
     113 
    105114        } 
    106  
    107115 
    108116        $("#TB_load").remove(); 
     
    113121            $("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'}); 
    114122        } 
     123 
     124        $("#TB_ajaxWindowTitle").html(title); 
    115125        $("#TB_ajaxContent").html(contents); 
    116126        $("#TB_window").css({display:"block"}); 
Note: See TracChangeset for help on using the changeset viewer.