Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
b9c74976
Commit
b9c74976
authored
Jun 05, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update to show the default icon
parent
a788638a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
24 deletions
+18
-24
index.html
resources/library/search/PlaneteAudioSearch.wgs/index.html
+6
-8
index.html
resources/library/search/PlaneteFlashSearch.wgs/index.html
+6
-8
index.html
resources/library/search/PlaneteImgSearch.wgs/index.html
+6
-8
No files found.
resources/library/search/PlaneteAudioSearch.wgs/index.html
View file @
b9c74976
...
...
@@ -71,21 +71,19 @@
// We use titleNoFormatting so that no HTML tags are left in the
// title
title
.
innerHTML
=
result
.
title
;
if
(
thumbnails
)
{
var
newImg
=
document
.
createElement
(
'img'
);
// There is also a result.file property which has the escaped version
newImg
.
src
=
result
.
file
;
if
(
thumbnails
)
{
newImg
.
src
=
result
.
file
;
}
else
{
newImg
.
src
=
"./images/thumbnail_icon.png"
;
}
var
imgWidth
=
(
result
.
tbWidth
>
minWidth
)?
result
.
tbWidth
:
minWidth
;
var
imgHeight
=
(
result
.
tbHeight
>
minHeight
)?
result
.
tbHeight
:
minHeight
;
imgContainer
.
width
(
imgWidth
).
height
(
imgHeight
);
imgContainer
.
append
(
$
(
newImg
));
}
else
{
var
imgWidth
=
(
result
.
tbWidth
>
minWidth
)?
result
.
tbWidth
:
minWidth
;
var
imgHeight
=
(
result
.
tbHeight
>
minHeight
)?
result
.
tbHeight
:
minHeight
;
imgContainer
.
width
(
imgWidth
).
height
(
imgHeight
);
}
iUrl
.
attr
(
"value"
,
result
.
file
);
iUrl
.
attr
(
"value"
,
result
.
file
);
iContent
.
attr
(
"value"
,
result
.
title
);
iHeight
.
attr
(
"value"
,
result
.
height
);
iWidth
.
attr
(
"value"
,
result
.
width
);
...
...
resources/library/search/PlaneteFlashSearch.wgs/index.html
View file @
b9c74976
...
...
@@ -71,21 +71,19 @@
// We use titleNoFormatting so that no HTML tags are left in the
// title
title
.
innerHTML
=
result
.
title
;
if
(
thumbnails
)
{
var
newImg
=
document
.
createElement
(
'img'
);
// There is also a result.file property which has the escaped version
newImg
.
src
=
result
.
file
;
if
(
thumbnails
)
{
newImg
.
src
=
result
.
file
;
}
else
{
newImg
.
src
=
"./images/thumbnail_icon.png"
;
}
var
imgWidth
=
(
result
.
tbWidth
>
minWidth
)?
result
.
tbWidth
:
minWidth
;
var
imgHeight
=
(
result
.
tbHeight
>
minHeight
)?
result
.
tbHeight
:
minHeight
;
imgContainer
.
width
(
imgWidth
).
height
(
imgHeight
);
imgContainer
.
append
(
$
(
newImg
));
}
else
{
var
imgWidth
=
(
result
.
tbWidth
>
minWidth
)?
result
.
tbWidth
:
minWidth
;
var
imgHeight
=
(
result
.
tbHeight
>
minHeight
)?
result
.
tbHeight
:
minHeight
;
imgContainer
.
width
(
imgWidth
).
height
(
imgHeight
);
}
iUrl
.
attr
(
"value"
,
result
.
file
);
iUrl
.
attr
(
"value"
,
result
.
file
);
iContent
.
attr
(
"value"
,
result
.
title
);
iHeight
.
attr
(
"value"
,
result
.
height
);
iWidth
.
attr
(
"value"
,
result
.
width
);
...
...
resources/library/search/PlaneteImgSearch.wgs/index.html
View file @
b9c74976
...
...
@@ -71,21 +71,19 @@
// We use titleNoFormatting so that no HTML tags are left in the
// title
title
.
innerHTML
=
result
.
title
;
if
(
thumbnails
)
{
var
newImg
=
document
.
createElement
(
'img'
);
// There is also a result.file property which has the escaped version
newImg
.
src
=
result
.
file
;
if
(
thumbnails
)
{
newImg
.
src
=
result
.
file
;
}
else
{
newImg
.
src
=
"./images/thumbnail_icon.png"
;
}
var
imgWidth
=
(
result
.
tbWidth
>
minWidth
)?
result
.
tbWidth
:
minWidth
;
var
imgHeight
=
(
result
.
tbHeight
>
minHeight
)?
result
.
tbHeight
:
minHeight
;
imgContainer
.
width
(
imgWidth
).
height
(
imgHeight
);
imgContainer
.
append
(
$
(
newImg
));
}
else
{
var
imgWidth
=
(
result
.
tbWidth
>
minWidth
)?
result
.
tbWidth
:
minWidth
;
var
imgHeight
=
(
result
.
tbHeight
>
minHeight
)?
result
.
tbHeight
:
minHeight
;
imgContainer
.
width
(
imgWidth
).
height
(
imgHeight
);
}
iUrl
.
attr
(
"value"
,
result
.
file
);
iUrl
.
attr
(
"value"
,
result
.
file
);
iContent
.
attr
(
"value"
,
result
.
title
);
iHeight
.
attr
(
"value"
,
result
.
height
);
iWidth
.
attr
(
"value"
,
result
.
width
);
...
...
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