added profile view
This commit is contained in:
parent
0728d2e669
commit
fa62ef3629
12 changed files with 539 additions and 68 deletions
|
@ -33,6 +33,12 @@ function start(view) {
|
|||
|
||||
} else if (view == "profile") {
|
||||
|
||||
require(["controller/Profile"], function(Profile) {
|
||||
|
||||
tentia_instance = new Profile();
|
||||
|
||||
});
|
||||
|
||||
} else if (view == "follow") {
|
||||
|
||||
} else if (view == "conversation") {
|
||||
|
@ -55,17 +61,17 @@ String.prototype.endsWith = function(suffix) {
|
|||
return this.match(suffix+"$") == suffix;
|
||||
};
|
||||
|
||||
var __entityMap = {
|
||||
"&": "&",
|
||||
"<": "<",
|
||||
">": ">"
|
||||
};
|
||||
var __entityMap = {
|
||||
"&": "&",
|
||||
"<": "<",
|
||||
">": ">"
|
||||
};
|
||||
|
||||
String.prototype.escapeHTML = function() {
|
||||
return String(this).replace(/[&<>]/g, function (s) {
|
||||
return __entityMap[s];
|
||||
});
|
||||
}
|
||||
String.prototype.escapeHTML = function() {
|
||||
return String(this).replace(/[&<>]/g, function (s) {
|
||||
return __entityMap[s];
|
||||
});
|
||||
}
|
||||
|
||||
var console = {
|
||||
log: function(s) {
|
||||
|
|
Reference in a new issue