This website works better with JavaScript.
Home
Explore
Help
Sign In
p3k
/
Teacup
mirror of
https://github.com/aaronpk/Teacup.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
attempt to fix weird appcache bug
pull/10/head
Aaron Parecki
9 years ago
parent
ce0169b2e7
commit
fb8eb7bfbc
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
controllers/controllers.php
+1
-1
views/new-post.php
+ 1
- 1
controllers/controllers.php
View File
@ -225,7 +225,7 @@ $app->post('/post', function() use($app) {
}
});
$app
->
get
(
'/
new/
options'
,
function
()
use
(
$app
)
{
$app
->
get
(
'/options'
,
function
()
use
(
$app
)
{
if
(
$user
=
require_login
(
$app
))
{
$params
=
$app
->
request
()
->
params
();
+ 1
- 1
views/new-post.php
View File
@ -94,7 +94,7 @@ $(function(){
navigator
.
geolocation
.
getCurrentPosition
(
function
(
position
){
$
.
get
(
'/
new/
options'
,
{
$
.
get
(
'/options'
,
{
latitude
:
position
.
coords
.
latitude
,
longitude
:
position
.
coords
.
longitude
},
function
(
response
)
{
Write
Preview
Loading…
Cancel
Save