mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
make toc bbcode find its own container by default
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* Table of Contents jQuery Plugin - jquery.toc
|
||||
*
|
||||
* Copyright 2013 Nikhil Dabas
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License. You may obtain a copy of the License at
|
||||
*
|
||||
@@ -12,7 +12,7 @@
|
||||
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
||||
* or implied. See the License for the specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*
|
||||
*
|
||||
* The original script was modified to work within the red#martrix
|
||||
* - added var pathname
|
||||
*/
|
||||
@@ -53,7 +53,7 @@
|
||||
// What level is the current heading?
|
||||
var elem = $(this), level = $.map(headingSelectors, function (selector, index) {
|
||||
return elem.is(selector) ? index : undefined;
|
||||
})[0];
|
||||
})[0];
|
||||
if (level > currentLevel) {
|
||||
// If the heading is at a deeper level than where we are, start a new nested
|
||||
// list, but only if we already have some list items in the parent. If we do
|
||||
|
||||
Reference in New Issue
Block a user