Skip to content

Commit

Permalink
better code
Browse files Browse the repository at this point in the history
  • Loading branch information
tokuhirom committed Dec 28, 2011
1 parent 2210540 commit 003e252
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
17 changes: 17 additions & 0 deletions etc/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
server {
listen 80;
server_name jsapi.64p.org;
server_name_in_redirect off;

charset utf-8;

access_log /usr/local/webapp/jsapi/log/nginx/access.log main buffer=32k;
error_log /usr/local/webapp/jsapi/log/nginx/error.log;

location / {
if ( -f /usr/local/webapp/jsapi/code/maintenance) {
return 503;
}
alias /usr/local/webapp/jsapi/htdocs/;
}
}
6 changes: 5 additions & 1 deletion htdocs/js/jsapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ $(function () {
}
});

$.ajax({url: 'index.json', cache: false}).success(function (dat) {
$.ajax({
url: 'index.json',
dataType: 'json',
cache: false
}).success(function (dat) {
view.sideLoading.remove();

var ul = JSAPI.titleContainerElem;
Expand Down
1 change: 1 addition & 0 deletions log/nginx/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*

0 comments on commit 003e252

Please sign in to comment.