mirror of
https://github.com/google/nomulus.git
synced 2025-07-25 12:08:36 +02:00
Genericize "Contact Us" page
Parameterize integration, support and announcement email addresses and contact phone number, make static parameters flow through the system in a consistent manner. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=136183813
This commit is contained in:
parent
6a4088a8b6
commit
84bbb9a7c0
16 changed files with 177 additions and 65 deletions
|
@ -16,6 +16,7 @@ goog.provide('registry.registrar.ContactUs');
|
|||
|
||||
goog.require('goog.Uri');
|
||||
goog.require('goog.dom');
|
||||
goog.require('goog.object');
|
||||
goog.require('registry.Resource');
|
||||
goog.require('registry.ResourceComponent');
|
||||
goog.require('registry.soy.registrar.console');
|
||||
|
@ -44,6 +45,15 @@ registry.registrar.ContactUs = function(console, xsrfToken) {
|
|||
goog.inherits(registry.registrar.ContactUs, registry.ResourceComponent);
|
||||
|
||||
|
||||
/** @override */
|
||||
registry.registrar.ContactUs.prototype.renderItem = function(rspObj) {
|
||||
// Augment the static parameters with the response object, we'll need both.
|
||||
var params = goog.object.clone(this.console.params);
|
||||
goog.object.extend(params, rspObj);
|
||||
registry.registrar.ContactUs.base(this, 'renderItem', params);
|
||||
};
|
||||
|
||||
|
||||
/** @override */
|
||||
registry.registrar.ContactUs.prototype.bindToDom = function(id) {
|
||||
registry.registrar.ContactUs.base(this, 'bindToDom', '');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue