mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-01 13:24:10 +01:00
8c3d7ccdba
Remove old combobox user bower for onfontresize Add jcrop + md5 Add files to scrutinizer ignore list Remove misplaced text Selected the right MultiSelect library via bower Move bower dependencies to correct location
48 lines
1.1 KiB
JavaScript
48 lines
1.1 KiB
JavaScript
/*
|
|
* JavaScript Templates Runtime 2.4.1
|
|
* https://github.com/blueimp/JavaScript-Templates
|
|
*
|
|
* Copyright 2011, Sebastian Tschan
|
|
* https://blueimp.net
|
|
*
|
|
* Licensed under the MIT license:
|
|
* http://www.opensource.org/licenses/MIT
|
|
*/
|
|
|
|
/*jslint sloppy: true */
|
|
/*global define */
|
|
|
|
(function ($) {
|
|
var tmpl = function (id, data) {
|
|
var f = tmpl.cache[id];
|
|
return data ? f(data, tmpl) : function (data) {
|
|
return f(data, tmpl);
|
|
};
|
|
};
|
|
tmpl.cache = {};
|
|
tmpl.encReg = /[<>&"'\x00]/g;
|
|
tmpl.encMap = {
|
|
"<" : "<",
|
|
">" : ">",
|
|
"&" : "&",
|
|
"\"" : """,
|
|
"'" : "'"
|
|
};
|
|
tmpl.encode = function (s) {
|
|
/*jshint eqnull:true */
|
|
return (s == null ? "" : "" + s).replace(
|
|
tmpl.encReg,
|
|
function (c) {
|
|
return tmpl.encMap[c] || "";
|
|
}
|
|
);
|
|
};
|
|
if (typeof define === "function" && define.amd) {
|
|
define(function () {
|
|
return tmpl;
|
|
});
|
|
} else {
|
|
$.tmpl = tmpl;
|
|
}
|
|
}(this));
|