Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
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
c193f368
authored
May 08, 2013
by
Bence Dányi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall_gui: remove dummy code, format fixed
parent
4a295ff8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
firewall_gui/static/js/project.js
+5
-2
No files found.
firewall_gui/static/js/project.js
View file @
c193f368
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
* @param {String} name Cookie name
* @param {String} name Cookie name
* @return {String} Cookie value
* @return {String} Cookie value
*/
*/
function
getCookie
(
name
)
{
function
getCookie
(
name
)
{
var
cookieValue
=
null
;
var
cookieValue
=
null
;
if
(
document
.
cookie
&&
document
.
cookie
!=
''
)
{
if
(
document
.
cookie
&&
document
.
cookie
!=
''
)
{
...
@@ -73,14 +74,12 @@ var controllers = {
...
@@ -73,14 +74,12 @@ var controllers = {
return
;
return
;
}
}
}
}
console
.
log
(
'2foooo'
);
$scope
.
entity
.
groups
.
push
({
$scope
.
entity
.
groups
.
push
({
name
:
group
,
name
:
group
,
__created
:
true
,
__created
:
true
,
})
})
}
}
$scope
.
removeHostGroup
=
function
(
group
)
{
$scope
.
removeHostGroup
=
function
(
group
)
{
console
.
log
(
group
);
for
(
var
i
in
$scope
.
entity
.
groups
)
{
for
(
var
i
in
$scope
.
entity
.
groups
)
{
var
group_
=
$scope
.
entity
.
groups
[
i
];
var
group_
=
$scope
.
entity
.
groups
[
i
];
if
(
group_
.
name
==
group
.
name
)
{
if
(
group_
.
name
==
group
.
name
)
{
...
@@ -124,6 +123,7 @@ var module = angular.module('firewall', []).config(
...
@@ -124,6 +123,7 @@ var module = angular.module('firewall', []).config(
* @param {Number} b Upper limit
* @param {Number} b Upper limit
* @return {Array} Number from a to b
* @return {Array} Number from a to b
*/
*/
function
range
(
a
,
b
)
{
function
range
(
a
,
b
)
{
var
res
=
[];
var
res
=
[];
do
res
.
push
(
a
++
);
do
res
.
push
(
a
++
);
...
@@ -137,6 +137,7 @@ function range(a, b) {
...
@@ -137,6 +137,7 @@ function range(a, b) {
* @param {String} query Regexp to be checked against
* @param {String} query Regexp to be checked against
* @return {Boolean} True, if object matches (somehow) with query
* @return {Boolean} True, if object matches (somehow) with query
*/
*/
function
matchAnything
(
obj
,
query
)
{
function
matchAnything
(
obj
,
query
)
{
var
expr
=
new
RegExp
(
query
,
'i'
)
var
expr
=
new
RegExp
(
query
,
'i'
)
for
(
var
i
in
obj
)
{
for
(
var
i
in
obj
)
{
...
@@ -153,6 +154,7 @@ function matchAnything(obj, query) {
...
@@ -153,6 +154,7 @@ function matchAnything(obj, query) {
* @param {String} url REST endpoint for collection
* @param {String} url REST endpoint for collection
* @return {Function} ListController for the given REST endpoint
* @return {Function} ListController for the given REST endpoint
*/
*/
function
ListController
(
url
)
{
function
ListController
(
url
)
{
/**
/**
* ListController for the given REST endpoint
* ListController for the given REST endpoint
...
@@ -216,6 +218,7 @@ function ListController(url) {
...
@@ -216,6 +218,7 @@ function ListController(url) {
* @param {Object} url REST endpoint of the model
* @param {Object} url REST endpoint of the model
* @param {Object} init Init function for model-specic behaviour
* @param {Object} init Init function for model-specic behaviour
*/
*/
function
EntityController
(
url
,
init
)
{
function
EntityController
(
url
,
init
)
{
/**
/**
* Entity Controller for the given model URL
* Entity Controller for the given model URL
...
...
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