Committer: atyurin
LJSUP-14101: Redesigned update page: Insert Video button not working correctlyU trunk/htdocs/js/basic.js
Modified: trunk/htdocs/js/basic.js =================================================================== --- trunk/htdocs/js/basic.js 2012-10-31 07:15:15 UTC (rev 23222) +++ trunk/htdocs/js/basic.js 2012-10-31 09:09:02 UTC (rev 23223) @@ -1458,6 +1458,13 @@ } }); +// will be shimmed using es6-shim later +if (typeof String.prototype.startsWith !== 'function') { + String.prototype.startsWith = function(start) { + return this.slice(0, String(start).length) === start; + } +} + Object.extend(Date, { /** * Return timestamp number for current moment.