﻿

// #include <tora/asio/Loader.js>

function ListUpdater(school_id) /* extends Loader */ {
	this.__super = tora.asio.Loader;
	this.__super();
	this.constructor = ListUpdater;
	delete this.__super;
	this.school_id_ = school_id;
}

ListUpdater.prototype = new tora.asio.Loader();

ListUpdater.prototype.source = function() {
	if(this.school_id_ == undefined) {
		return "http://www.school-portal.jp/__test/www/Updatelist/?id=";
	}else {
		return "http://www.school-portal.jp/__test/www/Updatelist/?id=" + this.school_id_;
	}
}

ListUpdater.prototype.doLoad = function() {
	var schools = this.loadedItems("schools");

	if (parseInt(schools[0].getAttribute("select_count")) == 0) {
		//alert("見つかりませんでした");
	}else {
		document.getElementById('listcount').innerHTML = schools[0].getAttribute("select_count") + "件";
	}
}

