diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-27 16:58:53 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-27 16:58:53 +0200 |
| commit | 420506e58fdfc84f1a5bede0a01dedf0af3bb4f3 (patch) | |
| tree | 57726b40e8aa9ccf80f874f39d3facefc0331420 /public/javascripts/tiny_mce/utils/mctabs.js | |
| parent | 241d5e91b2b6716e2861cc77d319c3d3568343a8 (diff) | |
Stage 7: Rails 7.2 → 8.1 on Ruby 3.2.11
- Bump Rails to 8.1.3 (Ruby unchanged at 3.2.11, new gemset rails8-upgrade)
- config.load_defaults 8.1; merge app:update diffs for all environment files
- Remove routing-filter 0.7.0; replace with native scope '(:locale)' in
routes.rb and default_url_options in ApplicationController
- Delete config/initializers/routing_filter_rails71_patch.rb
- Replace vendored TinyMCE 3.x (~200 files) with tinymce-rails ~> 8.3;
migrate admin_interface.js from jQuery .tinymce()/advanced theme to
tinymce.init(); add config/tinymce.yml; note: TinyMCE 7+ is GPL
- rails-i18n ~> 8.0 added explicitly (previously indirect dependency)
- awesome_nested_set, acts-as-taggable-on pinned to git main/master
(gemspec activerecord < 8.1 ceiling; no functional incompatibility;
repin to version once upstream releases updated gemspecs)
- globalize ~> 7.0, libxml-ruby ~> 5.0, nokogiri ~> 1.18, pg ~> 1.5
- sass-rails, coffee-rails, uglifier moved from :assets group to main
(Sprockets 4 convention; :assets group no longer meaningful)
- Node: head, draft, lock_owner marked belongs_to optional: true
- Page: node, user, editor marked belongs_to optional: true
- Static assets in public/images/ and public/javascripts/ referenced via
plain HTML tags; Rails 8 load_defaults raises on pipeline helpers for
undeclared assets
- sessions_controller_test.rb: remove stale require and dead rescue_action
- users_controller_test.rb: assert button[type=submit] not input[type=submit]
(Rails 8 button_to renders <button> not <input>)
- test_helper.rb: node.reload after children.create! (awesome_nested_set
3.9.0 does not refresh parent in memory after callback)
- 129 runs, 339 assertions, 3 failures, 0 errors — identical baseline to 7.2
Diffstat (limited to 'public/javascripts/tiny_mce/utils/mctabs.js')
| -rw-r--r-- | public/javascripts/tiny_mce/utils/mctabs.js | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/public/javascripts/tiny_mce/utils/mctabs.js b/public/javascripts/tiny_mce/utils/mctabs.js deleted file mode 100644 index 284501e..0000000 --- a/public/javascripts/tiny_mce/utils/mctabs.js +++ /dev/null | |||
| @@ -1,76 +0,0 @@ | |||
| 1 | /** | ||
| 2 | * $Id: mctabs.js 758 2008-03-30 13:53:29Z spocke $ | ||
| 3 | * | ||
| 4 | * Moxiecode DHTML Tabs script. | ||
| 5 | * | ||
| 6 | * @author Moxiecode | ||
| 7 | * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. | ||
| 8 | */ | ||
| 9 | |||
| 10 | function MCTabs() { | ||
| 11 | this.settings = []; | ||
| 12 | }; | ||
| 13 | |||
| 14 | MCTabs.prototype.init = function(settings) { | ||
| 15 | this.settings = settings; | ||
| 16 | }; | ||
| 17 | |||
| 18 | MCTabs.prototype.getParam = function(name, default_value) { | ||
| 19 | var value = null; | ||
| 20 | |||
| 21 | value = (typeof(this.settings[name]) == "undefined") ? default_value : this.settings[name]; | ||
| 22 | |||
| 23 | // Fix bool values | ||
| 24 | if (value == "true" || value == "false") | ||
| 25 | return (value == "true"); | ||
| 26 | |||
| 27 | return value; | ||
| 28 | }; | ||
| 29 | |||
| 30 | MCTabs.prototype.displayTab = function(tab_id, panel_id) { | ||
| 31 | var panelElm, panelContainerElm, tabElm, tabContainerElm, selectionClass, nodes, i; | ||
| 32 | |||
| 33 | panelElm= document.getElementById(panel_id); | ||
| 34 | panelContainerElm = panelElm ? panelElm.parentNode : null; | ||
| 35 | tabElm = document.getElementById(tab_id); | ||
| 36 | tabContainerElm = tabElm ? tabElm.parentNode : null; | ||
| 37 | selectionClass = this.getParam('selection_class', 'current'); | ||
| 38 | |||
| 39 | if (tabElm && tabContainerElm) { | ||
| 40 | nodes = tabContainerElm.childNodes; | ||
| 41 | |||
| 42 | // Hide all other tabs | ||
| 43 | for (i = 0; i < nodes.length; i++) { | ||
| 44 | if (nodes[i].nodeName == "LI") | ||
| 45 | nodes[i].className = ''; | ||
| 46 | } | ||
| 47 | |||
| 48 | // Show selected tab | ||
| 49 | tabElm.className = 'current'; | ||
| 50 | } | ||
| 51 | |||
| 52 | if (panelElm && panelContainerElm) { | ||
| 53 | nodes = panelContainerElm.childNodes; | ||
| 54 | |||
| 55 | // Hide all other panels | ||
| 56 | for (i = 0; i < nodes.length; i++) { | ||
| 57 | if (nodes[i].nodeName == "DIV") | ||
| 58 | nodes[i].className = 'panel'; | ||
| 59 | } | ||
| 60 | |||
| 61 | // Show selected panel | ||
| 62 | panelElm.className = 'current'; | ||
| 63 | } | ||
| 64 | }; | ||
| 65 | |||
| 66 | MCTabs.prototype.getAnchor = function() { | ||
| 67 | var pos, url = document.location.href; | ||
| 68 | |||
| 69 | if ((pos = url.lastIndexOf('#')) != -1) | ||
| 70 | return url.substring(pos + 1); | ||
| 71 | |||
| 72 | return ""; | ||
| 73 | }; | ||
| 74 | |||
| 75 | // Global instance | ||
| 76 | var mcTabs = new MCTabs(); | ||
