Пример #1
0
	Controller.prototype.init = function(callback) {
		this.recordURL();
		this.callback = callback;

		temp = 'app/templates/organization/zone';
		orgId = Application.organization.id;
		title = decodeURIComponent(Helper.param.search("title"));
		this.backURL = '#organization/' + orgId + '/index';

		if (title) {
			Helper.storePageTitle(orgId, "orgZone", title);
		}
		title = title || Helper.getStoredOrgTitle(orgId, "orgZone") || "社团招新";

		this.render();
	};
Пример #2
0
	Controller.prototype.init = function(callback) {
		this.callback = callback;
		this.recordURL();
		orgId = Application.organization.id;
		this.backURL = '#organization/' + orgId + '/index'; // 设置后退默认链接

		keyword = Helper.param.search("keyword") || "";
		limit = +Helper.param.search("limit") || 10;
		title = decodeURIComponent(Helper.param.search("title"));

		// 存储标题
		if (title) {
			Helper.storePageTitle(orgId, "RelatedOrganizationArticles", title);
		}
		title = title || Helper.getStoredOrgTitle(orgId, "RelatedOrganizationArticles") || "关联组织文章";
		Helper.setTitle(title);

		this.articles = [];
		this.count = 0;

		this.render();
	};