[bknr-cvs] hans changed trunk/projects/bos/payment-website/static/poi-ms/poi-ms.
BKNR Commits
bknr at bknr.net
Tue Dec 9 17:01:00 UTC 2008
Revision: 4123
Author: hans
URL: http://bknr.net/trac/changeset/4123
Cleanup.
Sort POI media by type, date.
U trunk/projects/bos/payment-website/static/poi-ms/poi-ms.css
U trunk/projects/bos/payment-website/static/poi-ms/poi-ms.html
U trunk/projects/bos/payment-website/static/poi-ms/poi-ms.js
Modified: trunk/projects/bos/payment-website/static/poi-ms/poi-ms.css
===================================================================
--- trunk/projects/bos/payment-website/static/poi-ms/poi-ms.css 2008-12-09 16:25:20 UTC (rev 4122)
+++ trunk/projects/bos/payment-website/static/poi-ms/poi-ms.css 2008-12-09 17:01:00 UTC (rev 4123)
@@ -7,6 +7,7 @@
background-image: url(bg.gif);
background-repeat: repeat-y;
}
+
h1 {
font-size: 19px;
font-weight: bold;
@@ -14,37 +15,41 @@
height:62px;
margin:0px;
}
+
h2 {
font-size:15px;
margin:0px;
font-weight: bold;
}
+
h3 {
font-size:12px;
font-weight:bold;
margin:0px;
}
-.yui-t3 {
+#doc {
float:left;
width:740px;
}
+
#left-bar {
background-color:#B2B774;
padding-top:10px;
height:500px;
}
-.yui-b {
+
+.navigation {
float:left;
width:190px;
margin-right:20px;
}
-
-.yui-main {
+#content {
float:left;
width:506px;
}
+
#content-body {
width:506px;
float:left;
@@ -55,6 +60,7 @@
#content-body img {
padding-top:15px;
}
+
a#back {
color:#AFAFAF;
text-decoration: none;
@@ -90,6 +96,7 @@
height:37px;
background-color:#FFFFFF
}
+
ul#poi-list li {
position: relative;
height: 44px;
Modified: trunk/projects/bos/payment-website/static/poi-ms/poi-ms.html
===================================================================
--- trunk/projects/bos/payment-website/static/poi-ms/poi-ms.html 2008-12-09 16:25:20 UTC (rev 4122)
+++ trunk/projects/bos/payment-website/static/poi-ms/poi-ms.html 2008-12-09 17:01:00 UTC (rev 4123)
@@ -10,29 +10,22 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
- <div id="doc" class="yui-t3">
+ <div id="doc">
<div id="hd"><img src="site_header-de.jpg" /></div>
<div id="bd">
-
- <div class="yui-b">
+ <div class="navigation">
<div id="small-map" class="map">
<a href="#"><img src="uebersichtskarte_klein.gif" width="118" height="58" border="0"/></a><br />
- <a href="#" id="back">zurueck</a>
+ <a href="#" id="back">zurueck</a>
</div>
<div id="left-bar">
</div>
</div>
</div>
-
-
- <div id="yui-main">
- <div id="content">
- <div id="content-body">
- </div>
+ <div id="content">
+ <div id="content-body">
+ </div>
<div id="map"><img src="fake-map.jpg" width="505" height="505"/></div>
- </div>
- </div>
- <div id="ft">
</div>
</div>
</body>
Modified: trunk/projects/bos/payment-website/static/poi-ms/poi-ms.js
===================================================================
--- trunk/projects/bos/payment-website/static/poi-ms/poi-ms.js 2008-12-09 16:25:20 UTC (rev 4122)
+++ trunk/projects/bos/payment-website/static/poi-ms/poi-ms.js 2008-12-09 17:01:00 UTC (rev 4123)
@@ -121,6 +121,14 @@
return path;
}
+function compareMedia (a, b) {
+ if (a.mediumType == b.mediumType) {
+ return (b.timestamp < a.timestamp) ? -1 : 1;
+ } else {
+ return (a.mediumType < b.mediumType) ? -1 : 1;
+ }
+}
+
function showPOI(poi) {
if (poi.data) {
poi = poi.data;
@@ -148,7 +156,7 @@
B(null, medium.title || medium.name))))
.bind('click', [ poi, medium ], showMedium));
}
- }, poi.media);
+ }, poi.media.sort(compareMedia));
mainMap.hide();
}
More information about the Bknr-cvs
mailing list