Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
a34d2837
authored
Jun 13, 2013
by
Bence Dányi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall_gui: visual feedback after successful save
parent
10562300
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
firewall_gui/static/js/project.js
+7
-1
No files found.
firewall_gui/static/js/project.js
View file @
a34d2837
...
...
@@ -45,6 +45,7 @@ $.ajaxSetup({
* @param String name Object name, add{name} and remove{name} methods will be generated
* @param Object model Model name (the collections name) in the entity
*/
function
makeAddRemove
(
$scope
,
name
,
model
)
{
/**
* Add entity to collection
...
...
@@ -264,6 +265,7 @@ function ListController(url) {
/**
* Reloads the entities
*/
function
reloadList
()
{
$http
.
get
(
url
).
success
(
function
success
(
data
)
{
rules
=
data
;
...
...
@@ -318,8 +320,12 @@ function EntityController(url, init) {
success
:
function
(
data
)
{
console
.
log
(
data
);
var
audio
=
new
Audio
();
audio
.
src
=
'/static/img/yeah.mp3'
;
audio
.
src
=
'/static/img/yeah.mp3'
;
audio
.
play
();
$
(
'button[type=submit]'
).
addClass
(
'btn-success'
);
setTimeout
(
function
(){
$
(
'button[type=submit]'
).
removeClass
(
'btn-success'
);
},
4000
);
$scope
.
$apply
(
function
()
{
$scope
.
errors
=
{};
});
...
...
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