Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
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
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
die_coolen_jungs
our_own_cloud_project
Commits
485be909
Commit
485be909
authored
10 years ago
by
Georg Ehrke
Browse files
Options
Downloads
Patches
Plain Diff
improvements for uninstall button
parent
2327d41b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
settings/js/apps.js
+6
-6
6 additions, 6 deletions
settings/js/apps.js
settings/templates/apps.php
+1
-1
1 addition, 1 deletion
settings/templates/apps.php
with
7 additions
and
7 deletions
settings/js/apps.js
+
6
−
6
View file @
485be909
...
...
@@ -84,12 +84,12 @@ OC.Settings.Apps = OC.Settings.Apps || {
page
.
find
(
'
input.update
'
).
hide
();
}
if
(
app
.
removable
!==
false
)
{
page
.
find
(
'
input
.uninstall
'
).
show
();
page
.
find
(
'
input
.uninstall
'
).
data
(
'
appid
'
,
app
.
id
);
page
.
find
(
'
input
.uninstall
'
).
attr
(
'
value
'
,
t
(
'
settings
'
,
'
Uninstall App
'
));
if
(
app
.
removable
!==
false
&&
app
.
active
===
false
)
{
page
.
find
(
'
a
.uninstall
'
).
show
();
page
.
find
(
'
a
.uninstall
'
).
data
(
'
appid
'
,
app
.
id
);
page
.
find
(
'
a
.uninstall
'
).
attr
(
'
value
'
,
t
(
'
settings
'
,
'
Uninstall App
'
));
}
else
{
page
.
find
(
'
input
.uninstall
'
).
hide
();
page
.
find
(
'
a
.uninstall
'
).
hide
();
}
page
.
find
(
'
input.enable
'
).
show
();
...
...
@@ -371,7 +371,7 @@ $(document).ready(function(){
OC
.
Settings
.
Apps
.
updateApp
(
appid
,
element
);
}
});
$
(
'
#app-content
input
.uninstall
'
).
click
(
function
(){
$
(
'
#app-content
a
.uninstall
'
).
click
(
function
(){
var
element
=
$
(
this
);
var
appid
=
$
(
this
).
data
(
'
appid
'
);
if
(
appid
)
{
...
...
This diff is collapsed.
Click to expand it.
settings/templates/apps.php
+
1
−
1
View file @
485be909
...
...
@@ -53,7 +53,7 @@
print_unescaped
(
$l
->
t
(
'<span class="licence"></span>-licensed by <span class="author"></span>'
));
?>
</p>
<input
class=
"enable hidden"
type=
"submit"
/>
<input
class=
"update hidden"
type=
"submit"
value=
"
<?php
p
(
$l
->
t
(
'Update'
));
?>
"
/>
<
input
class=
"uninstall hidden"
type=
"submit"
value=
"
<?php
p
(
$l
->
t
(
'Uninstall'
));
?>
"
/
>
<
a
class=
"uninstall hidden"
href=
"#"
>
<?php
p
(
$l
->
t
(
'Uninstall'
));
?>
</a
>
<br
/>
<input
class=
"hidden"
type=
"checkbox"
id=
"groups_enable"
/>
<label
class=
"hidden"
for=
"groups_enable"
>
<?php
p
(
$l
->
t
(
'Enable only for specific groups'
));
?>
</label>
...
...
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