tokens: add css file and fix argc and argv values
This commit is contained in:
parent
e3c04b1fd0
commit
bdf6289b32
@ -106,8 +106,8 @@ class Tokens extends Controller {
|
||||
$atoken = null;
|
||||
$atoken_xchan = '';
|
||||
|
||||
if(argc() > 2) {
|
||||
$id = argv(2);
|
||||
if(argc() > 1) {
|
||||
$id = argv(1);
|
||||
|
||||
$atoken = q("select * from atoken where atoken_id = %d and atoken_uid = %d",
|
||||
intval($id),
|
||||
@ -119,7 +119,7 @@ class Tokens extends Controller {
|
||||
$atoken_xchan = substr($channel['channel_hash'],0,16) . '.' . $atoken['atoken_name'];
|
||||
}
|
||||
|
||||
if($atoken && argc() > 3 && argv(3) === 'drop') {
|
||||
if($atoken && argc() > 2 && argv(2) === 'drop') {
|
||||
atoken_delete($id);
|
||||
$atoken = null;
|
||||
$atoken_xchan = '';
|
||||
|
@ -9,20 +9,3 @@
|
||||
.channel-menu {
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
.zat-example {
|
||||
color: red;
|
||||
}
|
||||
|
||||
#atoken-index {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#atoken-index td:nth-child(1){
|
||||
padding: 7px 3px 7px 10px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.atoken-index-tool {
|
||||
padding: 7px 10px;
|
||||
}
|
||||
|
16
view/css/mod_tokens.css
Normal file
16
view/css/mod_tokens.css
Normal file
@ -0,0 +1,16 @@
|
||||
.zat-example {
|
||||
color: red;
|
||||
}
|
||||
|
||||
#atoken-index {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#atoken-index td:nth-child(1){
|
||||
padding: 7px 3px 7px 10px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.atoken-index-tool {
|
||||
padding: 7px 10px;
|
||||
}
|
Reference in New Issue
Block a user