Revision 3586ad5e src/gr/grnet/pithos/web/client/commands/ToTrashCommand.java
b/src/gr/grnet/pithos/web/client/commands/ToTrashCommand.java | ||
---|---|---|
81 | 81 |
@SuppressWarnings("unchecked") |
82 | 82 |
@Override |
83 | 83 |
public void execute() { |
84 |
app.updateFolder(((List<File>) resource).get(0).getParent(), true, new Command() { |
|
85 |
|
|
86 |
@Override |
|
87 |
public void execute() { |
|
88 |
app.updateTrash(false, null); |
|
89 |
} |
|
90 |
}, true); |
|
84 |
Folder f = ((List<File>) resource).get(0).getParent(); |
|
85 |
if (app.isMySharedSelected()) |
|
86 |
app.updateSharedFolder(f, true, new Command() { |
|
87 |
|
|
88 |
@Override |
|
89 |
public void execute() { |
|
90 |
app.updateTrash(false, null); |
|
91 |
} |
|
92 |
}); |
|
93 |
else |
|
94 |
app.updateFolder(f, true, new Command() { |
|
95 |
|
|
96 |
@Override |
|
97 |
public void execute() { |
|
98 |
app.updateTrash(false, null); |
|
99 |
} |
|
100 |
}, true); |
|
91 | 101 |
} |
92 | 102 |
}); |
93 | 103 |
} |
Also available in: Unified diff