mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(buffer) copy, or cut, after cut, do not prevent previous cutting
This commit is contained in:
parent
e36578530e
commit
aa2a0a6a57
1 changed files with 7 additions and 3 deletions
|
|
@ -40,9 +40,10 @@ var Util, DOM;
|
|||
}
|
||||
|
||||
function rmCutClass() {
|
||||
var files = DOM.getActiveFiles();
|
||||
var files = DOM.getByClassAll(CLASS),
|
||||
array = Util.slice(files);
|
||||
|
||||
files.forEach(function(element) {
|
||||
array.forEach(function(element) {
|
||||
DOM.removeClass(element, CLASS);
|
||||
});
|
||||
}
|
||||
|
|
@ -70,6 +71,8 @@ var Util, DOM;
|
|||
names = getNames(),
|
||||
from = Info.dirPath;
|
||||
|
||||
clear();
|
||||
|
||||
Storage.remove(CUT)
|
||||
.set(COPY, {
|
||||
from : from,
|
||||
|
|
@ -82,9 +85,10 @@ var Util, DOM;
|
|||
names = getNames(),
|
||||
from = Info.dirPath;
|
||||
|
||||
clear();
|
||||
addCutClass();
|
||||
|
||||
Storage.remove(COPY)
|
||||
Storage
|
||||
.set(CUT, {
|
||||
from : from,
|
||||
names: names
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue