|
@@ -1124,6 +1124,9 @@ const pmShare = (function () {
|
|
|
});
|
|
});
|
|
|
$('#share-rename-confirm').click(function () {
|
|
$('#share-rename-confirm').click(function () {
|
|
|
const newName = $('#share-rename-input').val().trim();
|
|
const newName = $('#share-rename-input').val().trim();
|
|
|
|
|
+ if (!newName) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
for(let project of projectQueryResult){
|
|
for(let project of projectQueryResult){
|
|
|
if(project.name === newName){
|
|
if(project.name === newName){
|
|
|
$('#share-rename-info').text(`已存在 “${newName}”`);
|
|
$('#share-rename-info').text(`已存在 “${newName}”`);
|