Skip to content

Commit aba8ed2

Browse files
FIX: Prompting the user for full name
This continues 3beb91d and 690ae1c
1 parent 67250b0 commit aba8ed2

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

app/_attachments/log.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,14 @@ function createUserDoc(user, sponsor, success, error) {
146146
if (u.rows.length > 0) fullname += ' ('+user+')';
147147
var obj = {
148148
'_id': user,
149+
'activity': [],
149150
'contributors': [user],
150-
'fullname': fullname
151+
'fullname': fullname,
152+
'order': []
151153
};
152154
if (sponsor && sponsor.length > 0) obj.readers = sponsor;
153155
$.ajax({
154-
url: '../'+user,
156+
url: relpath+user,
155157
type: 'PUT',
156158
contentType: 'application/json',
157159
data: JSON.stringify(obj)

app/templates/diary.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ <h1 class="editable"> <span id="size" class="badge badge-pill" title="{{i18n.i_m
113113
</svg>
114114
</a>
115115
</nav>
116-
{{^logged_fullname}}{{>storing_fullname_dialog}}{{/logged_fullname}}
116+
{{#by}}{{^logged_fullname}}{{>storing_fullname_dialog}}{{/logged_fullname}}{{/by}}
117117
{{>script}}
118118
{{#list}}<script src="../script/showdown.min.js"></script>{{/list}}
119119
{{^list}}<script src="../script/vis.min.js"></script>{{/list}}
@@ -160,9 +160,9 @@ <h1 class="editable"> <span id="size" class="badge badge-pill" title="{{i18n.i_m
160160
});
161161
announceMaintenance(maintenance, maintenance_in_progress);
162162
{{#logged}}
163-
{{^logged_fullname}}
163+
{{#by}}{{^logged_fullname}}
164164
$('#storing_fullname_dialog').modal('show')
165-
{{/logged_fullname}}
165+
{{/logged_fullname}}{{/by}}
166166
for (var m of memos) {
167167
var j = activity.map(function(a){return a.doc}).indexOf(m.id);
168168
if (activity.length > -1 && j > -1) {

app/templates/register.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ <h1>{{i18n.i_register}}</h1>
5252
</div>
5353
{{>script}}
5454
<script>
55-
var email = fullname = sponsor = "";
55+
var email = fullname = sponsor = "",
56+
relpath = '../';
5657
$(document).ready(function() {
5758
$.ajax({
5859
type: 'DELETE',

app/templates/todo.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ <h2 id='ungrounded' class="hidden">{{i18n.i_ungrounded}}</h2>
138138
if ($('.ungrounded').length > 0) $('#ungrounded').removeClass('hidden');
139139
});
140140

141+
function showMore(){}
141142
{{>layoutscript}}
142143
{{>logscript}}
143144
</script>

0 commit comments

Comments
 (0)