diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-16 01:37:12 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-16 01:37:12 +0200 |
| commit | 467ec340be673fbc7c3140b86d8aa7e43307ad1d (patch) | |
| tree | dd52442e96f5992d4c6a4c758aba3ed4b160f618 /public/javascripts/admin_interface.js | |
| parent | d56155231814633e04f856d22646fea24ef97011 (diff) | |
Remove some remnants of legacy admin wizard interface
Diffstat (limited to 'public/javascripts/admin_interface.js')
| -rw-r--r-- | public/javascripts/admin_interface.js | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/public/javascripts/admin_interface.js b/public/javascripts/admin_interface.js index 0c9ec66..9ce0b9e 100644 --- a/public/javascripts/admin_interface.js +++ b/public/javascripts/admin_interface.js | |||
| @@ -1,15 +1,3 @@ | |||
| 1 | function hide_all() { | ||
| 2 | $('#recent_changes_toggle').attr("class", "unselected"); | ||
| 3 | $('#my_work_toggle').attr("class", "unselected"); | ||
| 4 | $('#current_drafts_toggle').attr("class", "unselected"); | ||
| 5 | $('#admin_sitemap_toggle').attr("class", "unselected"); | ||
| 6 | |||
| 7 | $('#current_drafts_table').hide(); | ||
| 8 | $('#my_work_table').hide(); | ||
| 9 | $('#recent_changes_table').hide(); | ||
| 10 | $('#admin_sitemap_table').hide(); | ||
| 11 | } | ||
| 12 | |||
| 13 | $(document).ready(function () { | 1 | $(document).ready(function () { |
| 14 | admin_search.initialize(); | 2 | admin_search.initialize(); |
| 15 | 3 | ||
| @@ -85,54 +73,6 @@ $(document).ready(function () { | |||
| 85 | cccms.preview.initialize(); | 73 | cccms.preview.initialize(); |
| 86 | } | 74 | } |
| 87 | 75 | ||
| 88 | if ($('#recent_changes_toggle').length != 0) { | ||
| 89 | hide_all(); | ||
| 90 | $('#recent_changes_toggle').attr("class", "selected"); | ||
| 91 | $('#recent_changes_table').show(); | ||
| 92 | |||
| 93 | $('#recent_changes_toggle').bind("click", function(){ | ||
| 94 | hide_all(); | ||
| 95 | $('#recent_changes_toggle').attr("class", "selected"); | ||
| 96 | $('#recent_changes_table').show(); | ||
| 97 | return false; | ||
| 98 | }); | ||
| 99 | |||
| 100 | $('#my_work_toggle').bind("click", function(){ | ||
| 101 | hide_all(); | ||
| 102 | $('#my_work_toggle').attr("class", "selected"); | ||
| 103 | $('#my_work_table').show(); | ||
| 104 | return false; | ||
| 105 | }); | ||
| 106 | |||
| 107 | $('#admin_wizard_my_work').bind("click", function(){ | ||
| 108 | hide_all(); | ||
| 109 | $('#my_work_toggle').attr("class", "selected"); | ||
| 110 | $('#my_work_table').show(); | ||
| 111 | return false; | ||
| 112 | }); | ||
| 113 | |||
| 114 | $('#current_drafts_toggle').bind("click", function(){ | ||
| 115 | hide_all(); | ||
| 116 | $('#current_drafts_toggle').attr("class", "selected"); | ||
| 117 | $('#current_drafts_table').show(); | ||
| 118 | return false; | ||
| 119 | }); | ||
| 120 | |||
| 121 | $('#admin_sitemap_toggle').bind("click", function(){ | ||
| 122 | hide_all(); | ||
| 123 | $('#admin_sitemap_toggle').attr("class", "selected"); | ||
| 124 | $('#admin_sitemap_table').show(); | ||
| 125 | return false; | ||
| 126 | }); | ||
| 127 | |||
| 128 | $('#admin_wizard_create_page').bind("click", function(){ | ||
| 129 | hide_all(); | ||
| 130 | $('#admin_sitemap_toggle').attr("class", "selected"); | ||
| 131 | $('#admin_sitemap_table').show(); | ||
| 132 | return false; | ||
| 133 | }); | ||
| 134 | } | ||
| 135 | |||
| 136 | jQuery.ajaxSetup({ | 76 | jQuery.ajaxSetup({ |
| 137 | 'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript");} | 77 | 'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript");} |
| 138 | }); | 78 | }); |
