mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-07 22:38:51 +00:00
Monotone-Parent: d730814de50b7c4fd0fa165b4b6e02e968ff60ef
Monotone-Revision: 148caf2ae66d2024b6008a2633e9145890921239 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-09-01T20:27:45 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -31,6 +31,16 @@ String.prototype.capitalize = function() {
|
||||
});
|
||||
};
|
||||
|
||||
String.prototype.cssIdToHungarianId = function() {
|
||||
var parts = this.split("-");
|
||||
var newId = parts[0];
|
||||
for (var i = 1; i < parts.length; i++) {
|
||||
newId += parts[i].capitalize();
|
||||
}
|
||||
|
||||
return newId;
|
||||
}
|
||||
|
||||
String.prototype.decodeEntities = function() {
|
||||
return this.replace(/&#(\d+);/g,
|
||||
function(wholematch, parenmatch1) {
|
||||
|
||||
Reference in New Issue
Block a user