aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/scripts
Commit message (Collapse)AuthorAge
* updated jquery and jquery-ui versionsAndreas Gohr2025-03-15
|
* register linkwizard in windowAndreas Gohr2024-11-25
| | | | | This fixes a backwards compatibility issue with the changes made in PR #4329. Plugins rely on the wizard being a globally registered object.
* LinkWizard: fix multilevel parents in referencesAnna Dabrowska2024-10-21
|
* use relative links in LinkWizardAndreas Gohr2024-10-15
| | | | | When the linked page has a common prefix with the current page, construct a relative link instead of always inserting absolute links.
* LinkWizard: add method to create a relative linkAndreas Gohr2024-10-15
| | | | | | | This is not used, yet. Usage will be added in a future commit. Since we don't have a proper testing framework in place, yet. Tests have been added as a standalone script that can be run manually.
* doc blocks in link wizardAndreas Gohr2024-10-14
|
* Linkwizard: use strict comparisonsAndreas Gohr2024-10-14
|
* LinkWizard: don't use the deprecated keycode property anymoreAndreas Gohr2024-10-14
|
* turn link wizard into a classAndreas Gohr2024-10-14
| | | | Basic modernisation of the link wizard to more modern JavaScript.
* Revert "use a dispatcher to access static image files"Andreas Gohr2024-09-08
| | | | | | | This reverts commit 944e9ba7254387adb60f253b0d8796f2276096b1. It was accidentally pused to master before review. A PR with a revert for the revert will be pushed shortly.
* use a dispatcher to access static image filesAndreas Gohr2024-09-08
| | | | | | | | This makes it possible to replace default images in an update safe way. It also addresses the issue raised in dokuwiki/docker#16 A .htaccess rewrite catches any direct accesses that might come in from plugins.
* close curid span correctlyGerrit Uitslag2023-08-25
| | | | | Seems jQuery fixes this wrap already. #3003
* be more defensive when matching for section highlightAndreas Gohr2023-06-01
|
* Avoid flicker when highlighting a sectionAndreas Gohr2023-04-20
| | | | | | | | | | | | | | | | Previously, elements were wrapped in a div on hover and unwrapped when the mouse was moved again. This generally worked okay, but led to problems where the wrapped section contained elements with their own rendering context (video, object, iframe, ...). The wrapping caused rerendering of these elements resulting in flicker and layoutshift: splitbrain/dokuwiki-plugin-vshare#13 cosmocode/dokuwiki-plugin-diagrams#4 This patch changes the higlighting mechanism to always wrap *all* sections in a div and only toggle classes on hover. Class names have been chosen to be backwardscompatible, so this should continue to work as before in all templates.
* simplify media manager panel heightAndreas Gohr2023-03-30
| | | | | | | | | | | | | | | | | | | | The height of the panel was calculated in JavaScript, trying to use the remaining space. With larger headers that lead to a relatively small area. In addition the height calculation behaved weirdly on certain resolutions (in some templates) resulting in a decreasing height on each image interaction. This patch simply sets the panel height 60% of the browser window using the vh unit (which was not available when the media manager was written). To keep backward compatibility and not accidentally break a bunch of templates, the height is still set from JavaScript but only once instead of updating it on every resize operation. A proper refactoring of the whole media manager code is still something we need to tackle in the future, but this change should make it slightly better.
* jQuery and jQuery UI updatesAndreas Gohr2023-03-10
|
* use POSIX standard 'dot' built-in rather than 'source'Mike Steele2023-01-25
|
* fix security problems in draft handling. fixes #3565Andreas Gohr2021-12-17
|
* Add missing `;` causing syntax error in js.phpDamien Regad2021-03-06
|
* add cache buster on security check requestAndreas Gohr2021-01-11
| | | | | | When doing a normal reload on the admin page to recheck the security, the browser may not re-request the image again. This adds a timestamp to the URL to ensure the image is tested again
* cleaner behaviour for data directory checkAndreas Gohr2021-01-11
| | | | Show a properly translated message.
* do not repeat successful security checks. fixes #3363Andreas Gohr2021-01-05
| | | | | | This avoids creating lots of 403 errors for properly secured data directories. Only one successful check per browser session will be executed.
* Merge branch 'logging'Andreas Gohr2020-12-03
|\ | | | | | | | | | | | | | | | | | | | | * logging: added JavaScript based filter mechanism added logging configuration replaced out calls to dbglog with new Logger calls added convenience methods to log to our default facilities added logviwer admin plugin added log dir to git central logging mechanism
| * added logviwer admin pluginAndreas Gohr2020-08-13
| | | | | | | | | | | | This allows for easy viewing of the available logs. The log format was sligthly adjusted again for easier parsing.
* | SVG based smileysAndreas Gohr2020-11-20
| | | | | | | | | | | | This patch replaces our old gif based smileys by SVG based ones from the Twemoji project. This allows for scaling the emojis with the text they're used in.
* | Merge pull request #3198 from ssahara/formAndreas Gohr2020-10-13
|\ \ | | | | | | refactor html_* functions into Ui class member using Form\Form class
| * | more narrow jQuery selector to rev2[] checkboxSatoshi Sahara2020-08-18
| |/ | | | | | | This fix enables to use disabled checkbox for non-existing revision page or media file in the HTML form of Ui\Revisions.
* | Optimized pageRestoreConfirm functionGiuseppe Di Terlizzi2020-08-17
| |
* | Added confirmation dialog for page tools Revert actionGiuseppe Di Terlizzi2020-08-10
|/
* hide extensions only when javascript is availableAndreas Gohr2020-07-23
| | | | | Progressive enhancement asks for having information available fon nonJS users and transforming the interface by JS if available
* More compact list of allowed file types in media uploaderAnna Dabrowska2020-07-22
|
* Replace id with class in media uploaderAnna Dabrowska2020-07-22
|
* Display the list of allowed mime types in media uploaderAnna Dabrowska2020-07-21
|
* Merge pull request #3172 from splitbrain/cli-shebangAndreas Gohr2020-06-30
|\ | | | | Use envvars in shebang of executables
| * use envvars in shebangPhy2020-06-13
| |
* | run update.sh to update jquery filesSoarinferret2020-06-28
| |
* | Upgrade jQuery 3.5.0 to jQuery 3.5.1SoarinFerret2020-06-28
|/ | | Fixes jQuery regressions laid out here: https://blog.jquery.com/2020/05/04/jquery-3-5-1-released-fixing-a-regression/
* Merge pull request #3024 from splitbrain/cookieupdateHenry Pan2020-05-07
|\ | | | | Upgrade for jQuery.Cookie to 1.4.1
| * Upgrade for jQuery.Cookie to 1.4.1Andreas Gohr2020-03-26
| | | | | | | | | | | | | | | | | | | | This fixes a problem with badly encoded cookies that may have been set by other software on the same domain. Eg. cookies encoded in latin1 instead of UTF-8. Note: this library is abandoned and superseeded by js-cookie but an upgrade to that is not straight forward (and the benefits for us are unclear)
* | Merge pull request #3066 from splitbrain/jquery-updateAndreas Gohr2020-05-04
|\ \ | | | | | | jQuery Update and jQuery Migrate removal
| * | remove jQuery Migrate as outlined in #1546Andreas Gohr2020-05-02
| | |
| * | Update jQuery to 3.5.0 and Migrate to 3.2.0Andreas Gohr2020-05-01
| |/
* / generate curid class by jQueryPhy2020-03-09
|/ | | | | | | | | | | internallink's output <a> tag gets a new attribute, data-wiki-id, so that jQuery doesn't need to parse the various link format to get the ID. Any plugin javascript that loads after DokuWiki's script should be able to discover curid class as usual, as long as they use the default js.php facility. fixes #1511, fixes #2968.
* jquery-migrate: replace on()/trigger() shorthand and use prop() for disabled ↵Phy2020-02-23
| | | | | | attr Related to #1546.
* allow windows shares for Edge browserleimerp2019-12-30
|
* Check for null JS object on form field.Syntaxseed2019-10-01
|
* cookie.js when setValue‘s value parameter is false delete entryPhy2019-03-13
|
* cookie.js add def parameter to getValue()Phy2019-03-13
|
* cookie.js convert value type to stringPhy2019-03-12
| | | | | | | | | This prevents different type returned for DokuCookie.getValue(): DokuCookie.setValue('foo', false); console.log(DokuCookie.getValue('foo')); // false location.reload(); // pseudo code console.log(DokuCookie.getValue('foo')); // 'false'
* fix ACL admin footnote JS error, fixes #2540Phy2019-01-07
| | | | | - ACL's hand-written template doesn't use div.content to wrap the footnote content - jQuery object existence check should use $obj.length