Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
justinfreeman (Agileware)
Core
Commits
4441df69
Commit
4441df69
authored
12 years ago
by
colemanw
Browse files
Options
Downloads
Patches
Plain Diff
Specify location of jstree css and improve menu-editing theme
parent
8106195f
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
js/view/crm.designer.js
+2
-1
2 additions, 1 deletion
js/view/crm.designer.js
templates/CRM/Admin/Page/Navigation.tpl
+14
-1
14 additions, 1 deletion
templates/CRM/Admin/Page/Navigation.tpl
templates/CRM/Tag/Form/Tag.tpl
+4
-1
4 additions, 1 deletion
templates/CRM/Tag/Form/Tag.tpl
with
20 additions
and
3 deletions
js/view/crm.designer.js
+
2
−
1
View file @
4441df69
...
...
@@ -329,7 +329,8 @@
themes
:
{
"
theme
"
:
'
classic
'
,
"
dots
"
:
false
,
"
icons
"
:
false
"
icons
"
:
false
,
"
url
"
:
CRM
.
config
.
resourceBase
+
'
packages/jquery/plugins/jstree/themes/classic/style.css
'
},
'
plugins
'
:
[
'
themes
'
,
'
json_data
'
,
'
ui
'
,
'
search
'
]
}).
bind
(
'
loaded.jstree
'
,
function
()
{
...
...
This diff is collapsed.
Click to expand it.
templates/CRM/Admin/Page/Navigation.tpl
+
14
−
1
View file @
4441df69
...
...
@@ -43,6 +43,14 @@
<div
class=
"spacer"
></div>
</div>
{
literal
}
<style
type=
"text/css"
>
#navigation-tree
li
{
font-weight
:
normal
;
}
#navigation-tree
>
ul
>
li
{
font-weight
:
bold
;
}
</style>
<script
type=
"text/javascript"
>
cj
(
function
()
{
cj
(
"
#navigation-tree
"
).
jstree
({
...
...
@@ -54,6 +62,12 @@
url
:
{/
literal
}
"
{
crmURL
p
=
'civicrm/ajax/menu'
h
=
0
q
=
'key='
}{
crmKey
name
=
'civicrm/ajax/menu'
}
"
{
literal
}
}
},
themes
:
{
"
theme
"
:
'
classic
'
,
"
dots
"
:
true
,
"
icons
"
:
false
,
"
url
"
:
CRM
.
config
.
resourceBase
+
'
packages/jquery/plugins/jstree/themes/classic/style.css
'
},
rules
:
{
droppable
:
[
"
tree-drop
"
],
multiple
:
true
,
...
...
@@ -64,7 +78,6 @@
move
:
{
check_move
:
function
(
m
)
{
var
homeMenuId
=
{/
literal
}
"
{
$homeMenuId
}
"
{
literal
}
;
if
(
cj
(
m
.
r
[
0
]
).
attr
(
'
id
'
).
replace
(
"
node_
"
,
""
)
==
homeMenuId
||
cj
(
m
.
o
[
0
]
).
attr
(
'
id
'
).
replace
(
"
node_
"
,
""
)
==
homeMenuId
)
{
return
false
;
...
...
This diff is collapsed.
Click to expand it.
templates/CRM/Tag/Form/Tag.tpl
+
4
−
1
View file @
4441df69
...
...
@@ -85,7 +85,10 @@
});
//load js tree.
cj
(
"
#tagtree
"
).
jstree
(
{
"plugins"
:
[
"themes"
,
"html_data"
]
}
);
cj
(
"
#tagtree
"
).
jstree
({
"
plugins
"
:
[
"
themes
"
,
"
html_data
"
],
"
themes
"
:
{
"url"
:
CRM
.
config
.
resourceBase
+
'packages/jquery/plugins/jstree/themes/default/style.css'
}
});
{/
literal
}
{
if
$permission
neq
'edit'
}
...
...
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