diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-11 10:37:31 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-11 10:37:31 -0400 |
commit | 2c73ced0db2a3dc0402dc0cdc78538370bbf9e71 (patch) | |
tree | e292a8d87b66ab31a00b1b2a115f071370d1d4ab /public/js | |
parent | f68e279150b8c58a0c5ffeea44fe1a613031e58b (diff) | |
download | gitea-2c73ced0db2a3dc0402dc0cdc78538370bbf9e71.tar.gz gitea-2c73ced0db2a3dc0402dc0cdc78538370bbf9e71.zip |
Fix #173
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/app.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/public/js/app.js b/public/js/app.js index 162139986d..ebb05d2d6e 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -650,3 +650,7 @@ function initRepoSetting() { } }); })(jQuery); + +String.prototype.endsWith = function(suffix) { + return this.indexOf(suffix, this.length - suffix.length) !== -1; +}; |