Skip to content

Commit b10045a

Browse files
committed
clean code
1 parent 7759b30 commit b10045a

File tree

4 files changed

+2
-25
lines changed

4 files changed

+2
-25
lines changed

app.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ app.locals.serverURL = config.serverURL
196196
app.locals.sourceURL = config.sourceURL
197197
app.locals.allowAnonymous = config.allowAnonymous
198198
app.locals.allowAnonymousEdits = config.allowAnonymousEdits
199-
//here 1 line below is mine
200199
app.locals.allowVisibleSource = config.allowVisibleSource
201200
app.locals.permission = config.permission
202201
app.locals.allowPDFExport = config.allowPDFExport

lib/config/default.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ module.exports = {
3333
allowAnonymousEdits: true,
3434
allowAnonymousViews: true,
3535
allowFreeURL: false,
36-
//my new feature below
3736
allowVisibleSource: true,
3837
forbiddenNoteIDs: ['robots.txt', 'favicon.ico', 'api'],
3938
defaultPermission: 'editable',

public/js/lib/editor/ui-elems-without-jquery.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

public/views/codimd/header.ejs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,12 @@
9090
<div class="collapse navbar-collapse">
9191
<ul class="nav navbar-nav navbar-form navbar-left" style="padding:0;">
9292
<div class="btn-group" data-toggle="buttons">
93-
<div class="<%= Object.keys(permission) %>"></div>
9493
<% if(!allowVisibleSource) { %>
9594
<label class="btn btn-default ui-edit" data-block-source="<%= !allowVisibleSource %>" title="<%= __('Edit') %> (Ctrl+Alt+E)">
96-
<input type="radio" autocomplete="off"><i class="fa fa-pencil"></i>
95+
<input type="radio" name="mode" autocomplete="off"><i class="fa fa-pencil"></i>
9796
</label>
9897
<label class="btn btn-default ui-both" data-block-source="<%= !allowVisibleSource %>" title="<%= __('Both') %> (Ctrl+Alt+B)">
99-
<input type="radio" autocomplete="off"><i class="fa fa-columns"></i>
98+
<input type="radio" name="mode" autocomplete="off"><i class="fa fa-columns"></i>
10099
</label>
101100
<% } else { %>
102101
<label class="btn btn-default ui-edit" data-block-source="<%= !allowVisibleSource %>" title="<%= __('Edit') %> (Ctrl+Alt+E)">

0 commit comments

Comments
 (0)