diff options
Diffstat (limited to 'public')
| -rw-r--r-- | public/images/ajax-loader.gif | bin | 0 -> 1737 bytes | |||
| -rw-r--r-- | public/javascripts/admin_interface.js | 14 | ||||
| -rw-r--r-- | public/stylesheets/admin.css | 28 |
3 files changed, 39 insertions, 3 deletions
diff --git a/public/images/ajax-loader.gif b/public/images/ajax-loader.gif new file mode 100644 index 0000000..148005d --- /dev/null +++ b/public/images/ajax-loader.gif | |||
| Binary files differ | |||
diff --git a/public/javascripts/admin_interface.js b/public/javascripts/admin_interface.js index 5b51dfc..12a3ba6 100644 --- a/public/javascripts/admin_interface.js +++ b/public/javascripts/admin_interface.js | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | $(document).ready(function () { | 1 | $(document).ready(function () { |
| 2 | $("#metadata").attr("style", "display: none;") | 2 | $("#metadata").attr("style", "display: none;"); |
| 3 | 3 | ||
| 4 | $("#button").click(function () { | 4 | $("#button").click(function () { |
| 5 | $("#metadata").slideToggle("slow"); | 5 | $("#metadata").slideToggle("slow"); |
| @@ -11,4 +11,16 @@ $(document).ready(function () { | |||
| 11 | $("#button").attr("class", "unselected"); | 11 | $("#button").attr("class", "unselected"); |
| 12 | } | 12 | } |
| 13 | }); | 13 | }); |
| 14 | |||
| 15 | jQuery.ajaxSetup({ | ||
| 16 | 'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript")} | ||
| 17 | }) | ||
| 18 | |||
| 19 | jQuery.fn.submitWithAjax = function() { | ||
| 20 | $("#flash").append("<img src='/images/ajax-loader.gif' alt='' />"); | ||
| 21 | $.post(this.attr("action"), $(this).serialize(), null, "script"); | ||
| 22 | }; | ||
| 23 | |||
| 24 | |||
| 25 | |||
| 14 | }); \ No newline at end of file | 26 | }); \ No newline at end of file |
diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css index c3030d6..0495f65 100644 --- a/public/stylesheets/admin.css +++ b/public/stylesheets/admin.css | |||
| @@ -23,6 +23,25 @@ th { | |||
| 23 | width: 899px; | 23 | width: 899px; |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | #flash { | ||
| 27 | height: 12px; | ||
| 28 | line-height: 20px; | ||
| 29 | margin-top: 40px; | ||
| 30 | margin-bottom: 20px; | ||
| 31 | margin-left: 5px; | ||
| 32 | } | ||
| 33 | |||
| 34 | #flash span { | ||
| 35 | letter-spacing: 1px; | ||
| 36 | margin-right: 10px; | ||
| 37 | } | ||
| 38 | |||
| 39 | |||
| 40 | #flash img { | ||
| 41 | height: 12px; | ||
| 42 | width: 12px; | ||
| 43 | } | ||
| 44 | |||
| 26 | /* Pagination */ | 45 | /* Pagination */ |
| 27 | 46 | ||
| 28 | div.pagination { | 47 | div.pagination { |
| @@ -41,7 +60,7 @@ div.pagination span.current, div.pagination a:hover { | |||
| 41 | } | 60 | } |
| 42 | 61 | ||
| 43 | #navigation { | 62 | #navigation { |
| 44 | margin-left: -5px; | 63 | margin-left: 0px; |
| 45 | float: left; | 64 | float: left; |
| 46 | } | 65 | } |
| 47 | 66 | ||
| @@ -104,6 +123,11 @@ table#node_table td { | |||
| 104 | padding-left: 0px; | 123 | padding-left: 0px; |
| 105 | } | 124 | } |
| 106 | 125 | ||
| 126 | table#node_table .node_id { | ||
| 127 | padding-left: 10px; | ||
| 128 | padding-right: 15px; | ||
| 129 | } | ||
| 130 | |||
| 107 | table#node_table tr.header:hover { | 131 | table#node_table tr.header:hover { |
| 108 | background-color: #ffffff; | 132 | background-color: #ffffff; |
| 109 | } | 133 | } |
| @@ -218,6 +242,6 @@ td.description { | |||
| 218 | } | 242 | } |
| 219 | 243 | ||
| 220 | div#page_editor { | 244 | div#page_editor { |
| 221 | margin-top: 40px; | 245 | margin-top: 0px; |
| 222 | margin-left: 15px; | 246 | margin-left: 15px; |
| 223 | } \ No newline at end of file | 247 | } \ No newline at end of file |
