Skip to content

Commit

Permalink
fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Le Phuong committed Dec 12, 2016
1 parent fe9de9a commit 56f7504
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,8 @@ public function init() {
if (!is_dir(Yii::getAlias($this->uploadFolder))) {
mkdir(Yii::getAlias($this->uploadFolder), 0777, true);
}
if(!Yii::$app->cache->exists('roxy_last_order')) {
Yii::$app->cache->set('roxy_last_folder', Yii::getAlias($this->uploadFolder));
}
}
}
4 changes: 2 additions & 2 deletions src/web/js/roxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ $(document).on("change", "input#uploadform-file", function() {
$(document).on("click", '.btn-roxymce-close', function() {
var win = (window.opener ? window.opener : window.parent);
win.tinyMCE.activeEditor.windowManager.close();
closeDialog(getUrlParam('dialog'));
closeDialog(getUrlParam('fancybox'));
});
/**
* Event selected file roxymce
Expand All @@ -298,7 +298,7 @@ $(document).on("click", '.btn-roxymce-select', function() {
}
}
win.tinyMCE.activeEditor.windowManager.close();
closeDialog(getUrlParam('dialog'));
closeDialog(getUrlParam('fancybox'));
});
/**
* Event search files
Expand Down
Loading

0 comments on commit 56f7504

Please sign in to comment.