Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roque
slapos.core
Commits
906ac729
Commit
906ac729
authored
May 03, 2017
by
Rafael Monnerat
Committed by
Tomáš Peterka
May 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_web: Minor changes to make JSL happy.
parent
f7429ef0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
16 deletions
+14
-16
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting_theme/vifib_hosting_js/vifib_hosting.js.js
.../vifib_hosting_theme/vifib_hosting_js/vifib_hosting.js.js
+13
-15
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting_theme/vifib_hosting_js/vifib_monitoring.js.js
...fib_hosting_theme/vifib_hosting_js/vifib_monitoring.js.js
+1
-1
No files found.
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting_theme/vifib_hosting_js/vifib_hosting.js.js
View file @
906ac729
...
@@ -6,20 +6,19 @@ function selectCell(uid,additionnalClass,baseClass,listbox_id){
...
@@ -6,20 +6,19 @@ function selectCell(uid,additionnalClass,baseClass,listbox_id){
$
(
"
.
"
+
listbox_id
+
"
-table :checked
"
).
attr
(
"
checked
"
,
false
);
$
(
"
.
"
+
listbox_id
+
"
-table :checked
"
).
attr
(
"
checked
"
,
false
);
$
(
"
.
"
+
listbox_id
+
"
-table .
"
+
baseClass
).
removeClass
(
additionnalClass
);
$
(
"
.
"
+
listbox_id
+
"
-table .
"
+
baseClass
).
removeClass
(
additionnalClass
);
if
(
isChecked
==
false
)
{
if
(
isChecked
==
=
false
)
{
//check the box which call the function
//check the box which call the function
var
cell
=
$
(
"
#
"
+
listbox_id
+
"
_cell_
"
+
uid
);
var
cell
=
$
(
"
#
"
+
listbox_id
+
"
_cell_
"
+
uid
);
cell
.
addClass
(
additionnalClass
);
cell
.
addClass
(
additionnalClass
);
checkbox
.
attr
(
"
checked
"
,
true
)
checkbox
.
attr
(
"
checked
"
,
true
);
}
}
return
isChecked
==
false
;
return
isChecked
==
=
false
;
}
}
function
selectSoftwareProduct
(
uid
,
additionnalClass
,
baseClass
,
listbox_id
,
product_url
,
from
){
function
selectSoftwareProduct
(
uid
,
additionnalClass
,
baseClass
,
listbox_id
,
product_url
,
from
){
var
isCallingBoxChecked
=
selectCell
(
uid
,
additionnalClass
,
baseClass
,
listbox_id
);
var
isCallingBoxChecked
=
selectCell
(
uid
,
additionnalClass
,
baseClass
,
listbox_id
);
if
(
isCallingBoxChecked
==
true
){
if
(
isCallingBoxChecked
==
=
true
){
release_listbox_url
=
product_url
+
"
/SoftwareProduct_viewAsWeb/release_listbox?came_from=
"
+
from
;
release_listbox_url
=
product_url
+
"
/SoftwareProduct_viewAsWeb/release_listbox?came_from=
"
+
from
;
$
(
"
#release_listbox_container
"
).
load
(
release_listbox_url
);
$
(
"
#release_listbox_container
"
).
load
(
release_listbox_url
);
...
@@ -27,8 +26,9 @@ function selectSoftwareProduct(uid,additionnalClass,baseClass,listbox_id,product
...
@@ -27,8 +26,9 @@ function selectSoftwareProduct(uid,additionnalClass,baseClass,listbox_id,product
}
}
String
.
prototype
.
startsWith
=
function
(
str
)
String
.
prototype
.
startsWith
=
function
(
str
){
{
return
(
this
.
match
(
"
^
"
+
str
)
==
str
)}
return
(
this
.
match
(
"
^
"
+
str
)
==
str
);
};
function
initCellSelction
(
additionnalClass
,
listbox_id
)
function
initCellSelction
(
additionnalClass
,
listbox_id
)
{
{
...
@@ -40,22 +40,20 @@ function initCellSelction(additionnalClass,listbox_id)
...
@@ -40,22 +40,20 @@ function initCellSelction(additionnalClass,listbox_id)
uid
=
id
.
substring
(
id_prefix
.
length
,
id
.
length
);
uid
=
id
.
substring
(
id_prefix
.
length
,
id
.
length
);
//set the addtional css class
//set the addtional css class
$
(
"
#listbox_cell_
"
+
uid
).
addClass
(
additionnalClass
);
$
(
"
#listbox_cell_
"
+
uid
).
addClass
(
additionnalClass
);
}
}
});
});
}
}
function
initSoftwareProductList
(
product_additionnal_class
,
product_listbox_id
){
function
initSoftwareProductList
(
product_additionnal_class
,
product_listbox_id
){
//Select items
//Select items
initCellSelction
(
product_additionnal_class
,
product_listbox_id
)
initCellSelction
(
product_additionnal_class
,
product_listbox_id
)
;
//Show release selection
//Show release selection
$
(
"
.
"
+
product_additionnal_class
+
"
:last
"
).
click
()
$
(
"
.
"
+
product_additionnal_class
+
"
:last
"
).
click
()
;
}
}
function
clearField
(
selector
,
default_value
)
function
clearField
(
selector
,
default_value
)
{
{
var
field
=
$
(
selector
)
var
field
=
$
(
selector
)
;
if
(
field
.
val
()
==
default_value
){
if
(
field
.
val
()
==
default_value
){
field
.
val
(
''
);
field
.
val
(
''
);
}
}
...
...
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting_theme/vifib_hosting_js/vifib_monitoring.js.js
View file @
906ac729
...
@@ -104,7 +104,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
...
@@ -104,7 +104,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// $(this).attr("class", "monitoring_failed");
// $(this).attr("class", "monitoring_failed");
var
context
=
$
(
this
);
var
context
=
$
(
this
);
if
(
jqXHR
.
status
===
404
)
{
if
(
jqXHR
.
status
===
404
)
{
context
.
remove
()
context
.
remove
()
;
}
else
{
}
else
{
$
(
this
).
attr
(
"
class
"
,
"
monitoring_failed
"
)
$
(
this
).
attr
(
"
class
"
,
"
monitoring_failed
"
)
.
attr
(
"
title
"
,
"
Unable to fetch content
"
);
.
attr
(
"
title
"
,
"
Unable to fetch content
"
);
...
...
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