Commons: Remove "zc-test-" prepending
This commit is contained in:
parent
583b1ea585
commit
eb95974891
|
@ -1579,8 +1579,7 @@ var ZoteroPane = new function()
|
||||||
+ "Identifiers can contain basic Latin letters, numbers, hyphens, and underscores "
|
+ "Identifiers can contain basic Latin letters, numbers, hyphens, and underscores "
|
||||||
+ "and must be no longer than 32 characters. "
|
+ "and must be no longer than 32 characters. "
|
||||||
+ "Spaces and other characters are not allowed.\n\n"
|
+ "Spaces and other characters are not allowed.\n\n"
|
||||||
// TEMP
|
+ '"' + Zotero.Commons.userNameSlug + '-" '
|
||||||
+ '"zc-test-' + Zotero.Commons.userNameSlug + '-" '
|
|
||||||
+ "will be automatically prepended to your entry.",
|
+ "will be automatically prepended to your entry.",
|
||||||
newName,
|
newName,
|
||||||
"", {}
|
"", {}
|
||||||
|
@ -1596,8 +1595,7 @@ var ZoteroPane = new function()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TEMP
|
var testName = Zotero.Commons.userNameSlug + '-' + name;
|
||||||
var testName = 'zc-test-' + Zotero.Commons.userNameSlug + '-' + name;
|
|
||||||
if (!Zotero.Commons.isValidBucketName(testName)) {
|
if (!Zotero.Commons.isValidBucketName(testName)) {
|
||||||
invalid = true;
|
invalid = true;
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -232,8 +232,7 @@ Zotero.Commons = new function() {
|
||||||
if (!_userName) {
|
if (!_userName) {
|
||||||
throw new Exception("Username not set in Zotero.Commons.createBucket()");
|
throw new Exception("Username not set in Zotero.Commons.createBucket()");
|
||||||
}
|
}
|
||||||
// TEMP
|
name = this.userNameSlug + "-" + name;
|
||||||
name = "zc-test-" + this.userNameSlug + "-" + name;
|
|
||||||
|
|
||||||
var headers = {
|
var headers = {
|
||||||
"x-archive-auto-make-bucket":"1",
|
"x-archive-auto-make-bucket":"1",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user