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
b5318646
Commit
b5318646
authored
Jul 18, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://git@git.ivaya.de/BA_SST/PHP-Chat.git
parents
6415e076
7924712f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
customJS.js
customJS.js
+5
-4
newChat.php
newChat.php
+3
-2
No files found.
customJS.js
View file @
b5318646
...
...
@@ -36,7 +36,7 @@ $(document).ready(function() {
obj
.
done
(
function
(
data
){
alert
(
data
);
});
$
(
"#chatbar"
)
.
reset
();
$
(
'#chatbar'
)[
0
]
.
reset
();
});
$
(
'#changeToNormal'
).
click
(
function
(
event
){
...
...
@@ -51,7 +51,8 @@ $(document).ready(function() {
obj
.
removeClass
(
'btn-warning'
);
}
obj
.
addClass
(
'btn-default'
);
obj
.
attr
(
'name'
,
'chatok'
);
$
(
'#messageType'
).
attr
(
'name'
,
'chatok'
);
});
$
(
'#changeToMod'
).
click
(
function
(
event
){
...
...
@@ -66,7 +67,7 @@ $(document).ready(function() {
obj
.
removeClass
(
'btn-danger'
);
}
obj
.
addClass
(
'btn-warning'
);
$
(
'#
sendMessag
e'
).
attr
(
'name'
,
'modok'
);
$
(
'#
messageTyp
e'
).
attr
(
'name'
,
'modok'
);
});
$
(
'#changeToAdmin'
).
click
(
function
(
event
){
...
...
@@ -81,7 +82,7 @@ $(document).ready(function() {
obj
.
removeClass
(
'btn-warning'
);
}
obj
.
addClass
(
'btn-danger'
);
$
(
'#
sendMessag
e'
).
attr
(
'name'
,
'adminok'
);
$
(
'#
messageTyp
e'
).
attr
(
'name'
,
'adminok'
);
});
$
(
'#showRegBtn'
).
click
(
function
(){
...
...
newChat.php
View file @
b5318646
...
...
@@ -97,9 +97,10 @@ else{
<form
class=
""
role=
"form"
id=
"chatbar"
>
<div
class=
"input-group"
>
<span
class=
"input-group-addon hidden-xs"
>
<?php
echo
$users
[
'name'
];
?>
:
</span>
<input
type=
"text"
class=
"form-control"
placeholder=
"Deine Nachricht..."
autofocus
>
<input
type=
"text"
name=
"text"
class=
"form-control"
placeholder=
"Deine Nachricht..."
autofocus
>
<span
class=
"input-group-btn dropup"
>
<button
class=
"btn btn-default"
id=
"sendMessage"
name=
"chatok"
type=
"submit"
><span
class=
"glyphicon glyphicon-send"
/>
<span
class=
"hidden-xs"
>
Senden
</span></button>
<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>
<?php
if
(
$users
[
'admin'
]
>=
1
)
{
...
...
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