diff options
Diffstat (limited to 'chimere/static')
| -rw-r--r-- | chimere/static/edit_route_map.js | 19 | ||||
| -rw-r--r-- | chimere/static/img/upload.png | bin | 0 -> 8822 bytes | |||
| -rw-r--r-- | chimere/static/img/upload_images.licence | 16 | ||||
| -rw-r--r-- | chimere/static/styles.css | 13 |
4 files changed, 46 insertions, 2 deletions
diff --git a/chimere/static/edit_route_map.js b/chimere/static/edit_route_map.js index cb6f148..52d7ffd 100644 --- a/chimere/static/edit_route_map.js +++ b/chimere/static/edit_route_map.js @@ -1,4 +1,4 @@ -/* Copyright (C) 2008 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet> +/* Copyright (C) 2008-2011 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -42,7 +42,6 @@ function featureCreated(event) { pathModify.activate(); updateForm(event); pathModify.selectControl.select(event.feature); - } function initFeature(json_geometry){ @@ -141,3 +140,19 @@ function toggleDrawOff() { document.getElementById('draw-toggle-on').style.display = 'None'; document.getElementById('draw-toggle-off').style.display = 'block'; } + +function checkFields(){ + if (!jQuery("#id_name").val() || + !jQuery("#id_categories").val()){ + return false; + } + return true; +} + +function uploadFile(error_msg) { + if(!checkFields()){ + alert(error_msg); + return; + } + open_window(extra_url + 'upload_file'); +} diff --git a/chimere/static/img/upload.png b/chimere/static/img/upload.png Binary files differnew file mode 100644 index 0000000..53d7636 --- /dev/null +++ b/chimere/static/img/upload.png diff --git a/chimere/static/img/upload_images.licence b/chimere/static/img/upload_images.licence new file mode 100644 index 0000000..cf7408c --- /dev/null +++ b/chimere/static/img/upload_images.licence @@ -0,0 +1,16 @@ +Upload image credit + +* Farm-Fresh layer gps.png in Farm-Fresh Web Icons +Author: FatCow Web Hosting +Licence: Creative Commons Attribution 3.0 United States license +Url: http://commons.wikimedia.org/wiki/File:Farm-Fresh_layer_gps.png + +* Image from the Nuvola icon theme for KDE 3.x by David Vignoni +Author: David Vignoni +Licence: GNU Lesser General Public License version 2.1 or any later version +Url: http://commons.wikimedia.org/wiki/File:Nuvola_apps_download_manager2.svg + +* Icon from the Tango! project set. +Author: The Tango! Desktop Project +Licence: Public domain +Url: http://commons.wikimedia.org/wiki/File:Internet-web-browser.svg diff --git a/chimere/static/styles.css b/chimere/static/styles.css index 6ee1491..5b02d92 100644 --- a/chimere/static/styles.css +++ b/chimere/static/styles.css @@ -511,3 +511,16 @@ color:#b488ff; } .simple .cloud img{display:None;} + +.upload{ +vertical-align:center; +background-image:url('img/upload.png'); +background-repeat:no-repeat; +padding:40px; +padding-left:80px; +font-size:20px;; +} + +.window{ +background-color:#FFF; +} |
