Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
freecad_x3d
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
freecad_x3d
Commits
22b37c5f
Commit
22b37c5f
authored
Dec 24, 2015
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. search button in info popup
parent
7ee5af44
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
viewmodel.js
x3d_web_viewer/viewmodel.js
+13
-2
No files found.
x3d_web_viewer/viewmodel.js
View file @
22b37c5f
...
@@ -513,7 +513,7 @@ function showBOM(){
...
@@ -513,7 +513,7 @@ function showBOM(){
window
.
location
.
href
=
$
(
this
).
attr
(
'href'
);
window
.
location
.
href
=
$
(
this
).
attr
(
'href'
);
});
});
btn_link_to_wiki
=
$
(
"<a>"
,{
href
:
elphel_wiki_prefix
+
tmp_nsn
,
class
:
"btn btn-default btn-sm"
,
title
:
"Elphel Wiki docs"
}).
html
(
"<span class=
\"
glyphicon glyphicon-book
\"
aria-hidden=
\"
true
\"
></span>"
).
css
({
padding
:
"7px 13px 7px 13px"
,
margin
:
"6px"
});
btn_link_to_wiki
=
$
(
"<a>"
,{
href
:
elphel_wiki_prefix
+
"
\"
"
+
tmp_nsn
+
"
\"
&fulltext=Search"
,
class
:
"btn btn-default btn-sm"
,
title
:
"Elphel Wiki docs"
}).
html
(
"<span class=
\"
glyphicon glyphicon-book
\"
aria-hidden=
\"
true
\"
></span>"
).
css
({
padding
:
"7px 13px 7px 13px"
,
margin
:
"6px"
});
btn_link_to_wiki
.
click
(
function
(
e
){
btn_link_to_wiki
.
click
(
function
(
e
){
window
.
location
.
href
=
$
(
this
).
attr
(
'href'
);
window
.
location
.
href
=
$
(
this
).
attr
(
'href'
);
...
@@ -951,6 +951,17 @@ function update_info(name,state,cmd){
...
@@ -951,6 +951,17 @@ function update_info(name,state,cmd){
open_btn
.
attr
(
"href"
,
"?"
+
inherited_parameters
+
"model="
+
path
+
"/"
+
name
+
".x3d"
);
open_btn
.
attr
(
"href"
,
"?"
+
inherited_parameters
+
"model="
+
path
+
"/"
+
name
+
".x3d"
);
var
wiki_btn
=
$
(
"<a>"
,{
id
:
"info_wiki"
,
title
:
"look for part in Elphel wiki"
,
class
:
"btn btn-default btn-sm nooutline"
}).
attr
(
"nsn"
,
name
).
html
(
"<span class=
\"
glyphicon glyphicon-book
\"
aria-hidden=
\"
true
\"
></span>"
).
css
({
padding
:
"8px 11px 7px 11px"
,
margin
:
"0px 0px 0px 10px"
});
wiki_btn
.
attr
(
"href"
,
elphel_wiki_prefix
+
"
\"
"
+
name
+
"
\"
&fulltext=Search"
);
var
hide_btn
=
$
(
"<button>"
,{
var
hide_btn
=
$
(
"<button>"
,{
id
:
"info_hide"
,
id
:
"info_hide"
,
title
:
"hide parts"
,
title
:
"hide parts"
,
...
@@ -964,7 +975,7 @@ function update_info(name,state,cmd){
...
@@ -964,7 +975,7 @@ function update_info(name,state,cmd){
model_run_cmd
(
name
,
"info-hide-click"
);
model_run_cmd
(
name
,
"info-hide-click"
);
});
});
$
(
"#info"
).
append
(
pn
).
append
(
$
(
"<span>"
).
append
(
open_btn
)).
append
(
$
(
"<span>"
).
append
(
hide_btn
)).
css
({
display
:
""
});
$
(
"#info"
).
append
(
pn
).
append
(
$
(
"<span>"
).
append
(
open_btn
)).
append
(
$
(
"<span>"
).
append
(
wiki_btn
)).
append
(
$
(
"<span>"
).
append
(
hide_btn
)).
css
({
display
:
""
});
}
}
break
;
break
;
case
"click-ext"
:
case
"click-ext"
:
...
...
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