better effort for translation

This commit is contained in:
ansuz
2016-07-11 17:36:53 +02:00
parent cde68170d4
commit 3eccec7054
6 changed files with 60 additions and 34 deletions

View File

@@ -168,6 +168,10 @@ define([
return title;
};
var fixFileName = common.fixFileName = function (filename) {
return filename.replace(/ /g, '-').replace(/\//g, '_');
};
var causesNamingConflict = common.causesNamingConflict = function (title) {
var href = window.location.href;
return getRecentPads().some(function (pad) {