Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
e8d0f911
authored
Feb 06, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one: delete confirmation window added
parent
7f2b2920
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
one/static/cloud.js
+17
-9
No files found.
one/static/cloud.js
View file @
e8d0f911
...
@@ -338,15 +338,23 @@ $(function() {
...
@@ -338,15 +338,23 @@ $(function() {
* Deletes the specified file (or folder)
* Deletes the specified file (or folder)
*/
*/
self
.
delete
=
function
(
item
)
{
self
.
delete
=
function
(
item
)
{
$
.
ajax
({
$
(
'#modal'
).
show
();
type
:
'POST'
,
$
(
'#modal-container'
).
html
(
'Biztosan törlöd a(z) <strong>'
+
item
.
originalName
+
'</strong> '
+
(
item
.
type
==
'fájl'
?
'fájlt'
:
'mappát (és a teljes tartalmát)'
)
+
'? <br /><input class="ok" type="button" value="Naná!" style="float: left"/><input class="cancel" type="button" value="Fittyfenét!" style="float: right" />'
);
data
:
'rm='
+
self
.
currentPath
()
+
item
.
originalName
,
$
(
'#modal-container .ok'
).
click
(
function
()
{
url
:
'/ajax/store/delete'
,
$
(
'#modal'
).
hide
();
dataType
:
'json'
,
$
.
ajax
({
success
:
function
(
data
)
{
type
:
'POST'
,
self
.
files
.
remove
(
item
);
data
:
'rm='
+
self
.
currentPath
()
+
item
.
originalName
,
}
url
:
'/ajax/store/delete'
,
})
dataType
:
'json'
,
success
:
function
(
data
)
{
self
.
files
.
remove
(
item
);
}
})
});
$
(
'#modal-container .cancel'
).
click
(
function
()
{
$
(
'#modal'
).
hide
();
});
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment