summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-09-02 17:22:22 +0200
committerhukl <contact@smyck.org>2009-09-02 17:22:22 +0200
commit282e64efcf5359541d0930ab5ba2c4b8f2654cd3 (patch)
treeffd7c0ad2bfba39134480a36680c37dfd09f077b
parentbc35983129412f98cecbe477c8c5bec51af917f7 (diff)
further interface improvements
-rw-r--r--app/views/nodes/edit.html.erb3
-rw-r--r--public/javascripts/admin_interface.js11
-rw-r--r--public/stylesheets/admin.css11
3 files changed, 21 insertions, 4 deletions
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb
index b598ec5..90535ef 100644
--- a/app/views/nodes/edit.html.erb
+++ b/app/views/nodes/edit.html.erb
@@ -44,6 +44,9 @@
44 </li> 44 </li>
45 <% end %> 45 <% end %>
46 </ul> 46 </ul>
47 <div class="clear_left right">
48 <a id="image_browser_toggle" class="unselected" href="#">image browser</a>
49 </div>
47 </td> 50 </td>
48 </tr> 51 </tr>
49 </table> 52 </table>
diff --git a/public/javascripts/admin_interface.js b/public/javascripts/admin_interface.js
index c59979b..a78342e 100644
--- a/public/javascripts/admin_interface.js
+++ b/public/javascripts/admin_interface.js
@@ -118,6 +118,17 @@ image_interface = {
118 current_images : "", 118 current_images : "",
119 119
120 initialize : function() { 120 initialize : function() {
121 $("#image_browser_toggle").bind("click", function(){
122 if ($("#image_browser_toggle").attr("class") == "unselected") {
123 $("#image_browser_toggle").attr("class", "selected");
124 }
125 else {
126 $("#image_browser_toggle").attr("class", "unselected");
127 }
128
129 return false
130 });
131
121 $("ul#image_box").sortable({ 132 $("ul#image_box").sortable({
122 revert : true, 133 revert : true,
123 start : function(event, ui) { 134 start : function(event, ui) {
diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css
index d414b94..1ebf6e7 100644
--- a/public/stylesheets/admin.css
+++ b/public/stylesheets/admin.css
@@ -65,6 +65,10 @@ div.pagination span.current, div.pagination a:hover {
65 text-align: right; 65 text-align: right;
66} 66}
67 67
68.clear_left {
69 clear: left;
70}
71
68#navigation { 72#navigation {
69 position: relative; 73 position: relative;
70 margin-top: 10px; 74 margin-top: 10px;
@@ -74,13 +78,12 @@ div.pagination span.current, div.pagination a:hover {
74 float: left; 78 float: left;
75} 79}
76 80
77
78#navigation a:hover { 81#navigation a:hover {
79 color: #ffffff; 82 color: #ffffff;
80 background-color: #000000; 83 background-color: #000000;
81} 84}
82 85
83#main_navigation a, #sub_navigation a { 86#main_navigation a, #sub_navigation a, #metadata a {
84 letter-spacing: 1px; 87 letter-spacing: 1px;
85 padding-left: 5px; 88 padding-left: 5px;
86 padding-right: 5px; 89 padding-right: 5px;
@@ -91,7 +94,7 @@ div.pagination span.current, div.pagination a:hover {
91 color: #969696; 94 color: #969696;
92} 95}
93 96
94#sub_navigation a:hover { 97#sub_navigation a:hover, #metadata a:hover {
95 color: #ffffff; 98 color: #ffffff;
96 background-color: #ff9600; 99 background-color: #ff9600;
97} 100}
@@ -101,7 +104,7 @@ div.pagination span.current, div.pagination a:hover {
101 background-color: #ff9600; 104 background-color: #ff9600;
102} 105}
103 106
104#navigation a.selected { 107#navigation a.selected, #metadata a.selected {
105 color: #ffffff; 108 color: #ffffff;
106 background-color: #000000; 109 background-color: #000000;
107} 110}