Skip to content

Commit 2330525

Browse files
committed
Merge branch 'master' of https://github.com/Fmstrat/shorten
2 parents 98ccb5f + 8457ccc commit 2330525

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

controller/shortenapicontroller.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ public function __construct($appName, IRequest $request){
3232

3333
/**
3434
* @NoAdminRequired
35-
* @CORS
36-
* @NoCSRFRequired
3735
*/
3836
public function makeurl() {
3937
require_once 'shorten/lib/makeurl.php';
@@ -42,17 +40,13 @@ public function makeurl() {
4240

4341
/**
4442
* @NoAdminRequired
45-
* @CORS
46-
* @NoCSRFRequired
4743
*/
4844
public function code() {
4945
require_once 'shorten/lib/code.php';
5046
return runCode();
5147
}
5248

5349
/**
54-
* @CORS
55-
* @NoCSRFRequired
5650
*/
5751
public function setval() {
5852
require_once 'shorten/lib/setval.php';

js/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function addShareListener() {
2121

2222
function addListener(o) {
2323
$(o).ready(function() {
24-
$(o).click(function() {
24+
$(o).change(function() {
2525
setTimeout(replaceUrl, 750);
2626
});
2727
});

0 commit comments

Comments
 (0)