diff options
| author | hukl <contact@smyck.org> | 2009-10-18 17:57:18 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-10-18 17:57:18 +0200 |
| commit | f7d4d68953f913fa025d140674c6db56ed612c00 (patch) | |
| tree | caa5682d25cfe79e1e99572b75058ce6e72bc733 /public/javascripts | |
| parent | 443947a319692e0462024c99f06e4d18ab5f0344 (diff) | |
re-activated admin overview screen - listing 20 recent changes and 20 current drafts. more to come
Diffstat (limited to 'public/javascripts')
| -rw-r--r-- | public/javascripts/admin_interface.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/public/javascripts/admin_interface.js b/public/javascripts/admin_interface.js index 7aeb0b1..66e9a96 100644 --- a/public/javascripts/admin_interface.js +++ b/public/javascripts/admin_interface.js | |||
| @@ -21,6 +21,27 @@ $(document).ready(function () { | |||
| 21 | move_to_search.initialize_search(); | 21 | move_to_search.initialize_search(); |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | if ($('#recent_changes_toggle').length != 0) { | ||
| 25 | $('#current_drafts_table').hide(); | ||
| 26 | $('#recent_changes_toggle').attr("class", "selected"); | ||
| 27 | |||
| 28 | $('#recent_changes_toggle').bind("click", function(){ | ||
| 29 | $('#recent_changes_toggle').attr("class", "selected"); | ||
| 30 | $('#current_drafts_toggle').attr("class", "unselected"); | ||
| 31 | $('#recent_changes_table').show(); | ||
| 32 | $('#current_drafts_table').hide(); | ||
| 33 | return false; | ||
| 34 | }); | ||
| 35 | |||
| 36 | $('#current_drafts_toggle').bind("click", function(){ | ||
| 37 | $('#recent_changes_toggle').attr("class", "unselected"); | ||
| 38 | $('#current_drafts_toggle').attr("class", "selected"); | ||
| 39 | $('#current_drafts_table').show(); | ||
| 40 | $('#recent_changes_table').hide(); | ||
| 41 | return false; | ||
| 42 | }); | ||
| 43 | } | ||
| 44 | |||
| 24 | $(".with_editor").tinymce({ | 45 | $(".with_editor").tinymce({ |
| 25 | script_url : '/javascripts/tiny_mce/tiny_mce.js', | 46 | script_url : '/javascripts/tiny_mce/tiny_mce.js', |
| 26 | theme: "advanced", | 47 | theme: "advanced", |
