Skip to content

Commit

Permalink
Merge pull request #2 from xpressengine/develop
Browse files Browse the repository at this point in the history
Sync Develop2
  • Loading branch information
dorami committed Aug 3, 2018
2 parents 59e1336 + 124d119 commit 2942e7a
Show file tree
Hide file tree
Showing 26 changed files with 363 additions and 250 deletions.
2 changes: 1 addition & 1 deletion classes/db/DB.class.php
Expand Up @@ -439,7 +439,7 @@ function actFinish()
$buff[] = '<?php exit(); ?' . '>';
}
$buff[] = print_r($log, TRUE);
@file_put_contents($log_file, implode("\n", $buff) . "\n\n", FILE_APPEND|LOCK_EX);
@file_put_contents($debug_file, implode("\n", $buff) . "\n\n", FILE_APPEND|LOCK_EX);
}
}
else
Expand Down
16 changes: 16 additions & 0 deletions common/js/plugins/jquery.fileupload/js/main.js
Expand Up @@ -266,6 +266,7 @@
var self = this;
var file_srls = [];
var data = $container.data();
var img = _getCkeInstance(data.editorSequence).document.find('img');

if(!file_srl)
{
Expand All @@ -288,6 +289,21 @@
file_srls = file_srls.split(',');
$.each(file_srls, function(idx, srl){
data.settings.fileList.find('ul').find('li[data-file-srl=' + srl + ']').remove();


for(var i = 0; i <= img.count() - 1; i++) {
var elItem = img.getItem(i);
if(elItem.getAttribute('data-file-srl') == srl) {
var elParent = elItem.getParent();
console.debug('_deleteFile', elParent, elParent.getHtml(), elParent.getChildCount(), elParent.getChildren())

if(elParent.getChildCount() === 1) {
elParent.remove();
} else {
elItem.remove();
}
}
}
});
self.loadFilelist($container);
});
Expand Down
2 changes: 1 addition & 1 deletion common/js/plugins/jquery.fileupload/js/main.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions common/js/plugins/ui/jquery-ui.min.css

Large diffs are not rendered by default.

23 changes: 12 additions & 11 deletions common/js/plugins/ui/jquery-ui.min.js

Large diffs are not rendered by default.

0 comments on commit 2942e7a

Please sign in to comment.