summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2011-02-18 04:55:58 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2011-02-18 04:55:58 +0100
commit6c4c940ec44a9e2984be03fc9a13cf2857bded84 (patch)
tree23d572cd884fa4bdeed89dd7e1df2f93a66c1701 /static
parentd4f3278fa4526583c3e44f38e9127f2ff63bf7e9 (diff)
downloadIshtar-6c4c940ec44a9e2984be03fc9a13cf2857bded84.tar.bz2
Ishtar-6c4c940ec44a9e2984be03fc9a13cf2857bded84.zip
Work on sheet mecanism (refs #227)
Diffstat (limited to 'static')
-rw-r--r--static/js/ishtar.js15
-rw-r--r--static/media/style.css69
2 files changed, 84 insertions, 0 deletions
diff --git a/static/js/ishtar.js b/static/js/ishtar.js
index 131a220c9..7dc1be345 100644
--- a/static/js/ishtar.js
+++ b/static/js/ishtar.js
@@ -45,3 +45,18 @@ $("#main_menu ul li").live('click', function(){
$(this).find('ul').show('slow');
});
+function load_window(url){
+ $.ajax({
+ url: url,
+ cache: false,
+ success:function(html){
+ $("#window").html(html);
+ $("#window").show('slow');
+ },
+ error:function(XMLHttpRequest, textStatus, errorThrows){
+ }
+ });
+
+
+
+}
diff --git a/static/media/style.css b/static/media/style.css
index 8b2b9576a..f559ac827 100644
--- a/static/media/style.css
+++ b/static/media/style.css
@@ -233,3 +233,72 @@ table.confirm tr.spacer td:last-child{
.jqgrid{
cursor:pointer;
}
+
+.ui-jqgrid a{
+ color:red;
+ text-decoration:underline;
+ color:#D14;
+}
+
+#window{
+ position: absolute;
+ top: 50px;
+ width:600px;
+ background: #FFF;
+ z-index: 2000;
+ left: 50%;
+ margin-left: -300px;
+ border: 1px solid #AAA;
+ -webkit-box-shadow: 0px 0px 20px #444;
+ -moz-box-shadow: 0px 0px 20px #444;
+ text-align: left;
+ display:none;
+}
+
+#window{
+ width:760px;
+ height:90%;
+ position: absolute;
+ top: 5%;
+ background: #FFF;
+ z-index: 2000;
+ left: 50%;
+ margin-left: -380px;
+ -webkit-box-shadow: 0px 0px 20px #444;
+ -moz-box-shadow: 0px 0px 20px #444;
+ text-align: left;
+ display:none;
+ -moz-border-radius:8px;
+ -webkit-border-radius:8px;
+ border-radius:8px;
+}
+
+#window .sheet{
+}
+
+
+#window .head{
+ text-align:center;
+ background-color:#EEE;
+ -webkit-border-top-left-radius: 8px;
+ -webkit-border-top-right-radius: 8px;
+ -moz-border-radius-topleft: 8px;
+ -moz-border-radius-topright: 8px;
+ border-top-left-radius: 8px;
+ border-top-right-radius: 8px;
+}
+
+#window .body{
+ padding:10px;
+}
+
+#window label{
+ display:inline-table;
+ font-weight:bold;
+ width:160px;
+}
+
+#window p{
+ margin:0.3em;
+}
+