Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-filter_jmol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nik | Klampfradler
moodle-filter_jmol
Commits
3075b7a3
Commit
3075b7a3
authored
9 years ago
by
Geoff Rowland
Browse files
Options
Downloads
Patches
Plain Diff
Fix and simplify controls
parent
4c36d9de
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
filter.php
+2
-3
2 additions, 3 deletions
filter.php
with
2 additions
and
3 deletions
filter.php
+
2
−
3
View file @
3075b7a3
...
...
@@ -135,10 +135,9 @@ function filter_jmol_replace_callback($matches) {
$count
++
;
$id
=
time
()
.
$count
;
if
(
!
preg_match
(
'/c=(\d{1,2})/'
,
$matches
[
4
],
$optmatch
))
{
$
optmatch
=
array
(
1
=>
1
)
;
if
(
preg_match
(
'/c=(\d{1,2})/'
,
$matches
[
4
],
$optmatch
))
{
$
controls
=
$optmatch
[
1
]
;
}
$controls
=
$optmatch
[
1
];
// cover image - defer Jmol/JSmol object loading ?i=0 no cover image, ?i=1 (default) cover image
if
(
preg_match
(
'/i=(\d{1,1})/'
,
$matches
[
4
],
$optmatch
))
{
...
...
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