Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PHP-Chat
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BA_SST
PHP-Chat
Commits
9c7b7904
Commit
9c7b7904
authored
Jul 18, 2016
by
Markus Bergt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added focus for message typechange
parent
2c095033
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
customJS.js
customJS.js
+3
-0
newChat.php
newChat.php
+1
-1
No files found.
customJS.js
View file @
9c7b7904
...
@@ -64,6 +64,7 @@ $(document).ready(function() {
...
@@ -64,6 +64,7 @@ $(document).ready(function() {
obj
.
addClass
(
'btn-default'
);
obj
.
addClass
(
'btn-default'
);
$
(
'#messageType'
).
attr
(
'name'
,
'chatok'
);
$
(
'#messageType'
).
attr
(
'name'
,
'chatok'
);
$
(
'#messageBox'
).
focus
();
});
});
$
(
'#changeToMod'
).
click
(
function
(
event
){
$
(
'#changeToMod'
).
click
(
function
(
event
){
...
@@ -79,6 +80,7 @@ $(document).ready(function() {
...
@@ -79,6 +80,7 @@ $(document).ready(function() {
}
}
obj
.
addClass
(
'btn-warning'
);
obj
.
addClass
(
'btn-warning'
);
$
(
'#messageType'
).
attr
(
'name'
,
'modok'
);
$
(
'#messageType'
).
attr
(
'name'
,
'modok'
);
$
(
'#messageBox'
).
focus
();
});
});
$
(
'#changeToAdmin'
).
click
(
function
(
event
){
$
(
'#changeToAdmin'
).
click
(
function
(
event
){
...
@@ -94,6 +96,7 @@ $(document).ready(function() {
...
@@ -94,6 +96,7 @@ $(document).ready(function() {
}
}
obj
.
addClass
(
'btn-danger'
);
obj
.
addClass
(
'btn-danger'
);
$
(
'#messageType'
).
attr
(
'name'
,
'adminok'
);
$
(
'#messageType'
).
attr
(
'name'
,
'adminok'
);
$
(
'#messageBox'
).
focus
();
});
});
$
(
'#showRegBtn'
).
click
(
function
(){
$
(
'#showRegBtn'
).
click
(
function
(){
...
...
newChat.php
View file @
9c7b7904
...
@@ -99,7 +99,7 @@ if(isset($_GET['logoff'])){
...
@@ -99,7 +99,7 @@ if(isset($_GET['logoff'])){
<form
class=
""
role=
"form"
id=
"chatbar"
>
<form
class=
""
role=
"form"
id=
"chatbar"
>
<div
class=
"input-group"
>
<div
class=
"input-group"
>
<span
class=
"input-group-addon hidden-xs"
>
<?php
echo
$users
[
'name'
];
?>
:
</span>
<span
class=
"input-group-addon hidden-xs"
>
<?php
echo
$users
[
'name'
];
?>
:
</span>
<input
type=
"text"
name=
"text"
class=
"form-control"
placeholder=
"Deine Nachricht..."
autofocus
>
<input
id=
"messageBox"
type=
"text"
name=
"text"
class=
"form-control"
placeholder=
"Deine Nachricht..."
autofocus
>
<span
class=
"input-group-btn dropup"
>
<span
class=
"input-group-btn dropup"
>
<input
type=
"hidden"
id=
"messageType"
name=
chatok
value=
"btn"
/>
<input
type=
"hidden"
id=
"messageType"
name=
chatok
value=
"btn"
/>
<button
class=
"btn btn-default"
id=
"sendMessage"
type=
"submit"
><span
class=
"glyphicon glyphicon-send"
/>
<span
class=
"hidden-xs"
>
Senden
</span></button>
<button
class=
"btn btn-default"
id=
"sendMessage"
type=
"submit"
><span
class=
"glyphicon glyphicon-send"
/>
<span
class=
"hidden-xs"
>
Senden
</span></button>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment