Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dokuwiki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BRIC
dokuwiki
Commits
b1a864fe
Commit
b1a864fe
authored
9 years ago
by
Andreas Gohr
Browse files
Options
Downloads
Patches
Plain Diff
fix keeping the current page
parent
9fb99099
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/plugins/styler/action.php
+3
-0
3 additions, 0 deletions
lib/plugins/styler/action.php
lib/plugins/styler/admin.php
+0
-1
0 additions, 1 deletion
lib/plugins/styler/admin.php
lib/plugins/styler/script.js
+3
-2
3 additions, 2 deletions
lib/plugins/styler/script.js
with
6 additions
and
3 deletions
lib/plugins/styler/action.php
+
3
−
0
View file @
b1a864fe
...
...
@@ -90,6 +90,9 @@ class action_plugin_styler extends DokuWiki_Action_Plugin {
$event
->
preventDefault
();
$event
->
stopPropagation
();
global
$ID
;
$ID
=
getID
();
/** @var admin_plugin_styler $hlp */
$hlp
=
plugin_load
(
'admin'
,
'styler'
);
$hlp
->
form
(
true
);
...
...
This diff is collapsed.
Click to expand it.
lib/plugins/styler/admin.php
+
0
−
1
View file @
b1a864fe
...
...
@@ -61,7 +61,6 @@ class admin_plugin_styler extends DokuWiki_Admin_Plugin {
public
function
form
(
$isajax
)
{
global
$conf
;
global
$ID
;
$tpl
=
$conf
[
'template'
];
define
(
'SIMPLE_TEST'
,
1
);
// hack, ideally certain functions should be moved out of css.php
require_once
(
DOKU_INC
.
'lib/exe/css.php'
);
$styleini
=
css_styleini
(
$conf
[
'template'
],
true
);
...
...
This diff is collapsed.
Click to expand it.
lib/plugins/styler/script.js
+
3
−
2
View file @
b1a864fe
...
...
@@ -4,7 +4,7 @@ jQuery(function () {
// user openend the admin page, set cookie and redirect
if
(
jQuery
(
'
#plugin__styler
'
).
length
)
{
DokuCookie
.
setValue
(
'
styler_plugin
'
,
1
);
document
.
location
.
href
=
DOKU_BASE
;
document
.
location
.
href
=
document
.
location
.
href
.
replace
(
/do=admin/
,
''
)
;
}
// The Styler Dialog is currently enabled, display it here and apply the preview styles
...
...
@@ -15,7 +15,8 @@ jQuery(function () {
$dialog
.
load
(
DOKU_BASE
+
'
/lib/exe/ajax.php
'
,
{
'
call
'
:
'
plugin_styler
'
'
call
'
:
'
plugin_styler
'
,
'
id
'
:
JSINFO
.
id
},
function
()
{
// load the preview template
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment