Compare View

switch
from
...
to
 
Commits (3)

Changes

Showing 4 changed files Side-by-side Diff

control-panel/lib/misc.js
... ... @@ -6,7 +6,7 @@ function needAuthUser(req, res, next) {
6 6 if (!req || !req.session || !req.session.username) {
7 7 const qs = {
8 8 msg: 'Anda diharuskan login sebagai super terminal dari super password untuk mengakses halaman yang diminta.',
9   - ref: req.referer
  9 + ref: req.get('Referer')
10 10 };
11 11  
12 12 res.redirect('/login?' + querystring.stringify(qs));
control-panel/lib/router-login.js
... ... @@ -21,7 +21,7 @@ function pageLogin(req, res, next) {
21 21 res.render(
22 22 req.app.locals.cp_views_dir + '/login.html',
23 23 {
24   - ref: req.query.referer,
  24 + ref: req.query.ref,
25 25 msg: req.query.msg
26 26 }
27 27 )
control-panel/views/config.jsoneditor.html
... ... @@ -13,7 +13,7 @@
13 13  
14 14 <script>
15 15 function saveData() {
16   - window.alert(JSON.stringify(editor.get()));
  16 + //window.alert(JSON.stringify(editor.get()));
17 17 jQuery.ajax({
18 18 type: "POST",
19 19 url: '/config/data',
1 1 {
2 2 "name": "komodo-sdk",
3   - "version": "1.10.4",
  3 + "version": "1.10.5",
4 4 "description": "SDK for Komodo",
5 5 "main": "index.js",
6 6 "scripts": {