* release: optimize export form with ajaxForm.
This commit is contained in:
@@ -309,7 +309,7 @@ class release extends control
|
||||
{
|
||||
$type = $this->post->type;
|
||||
$fileName = $this->post->fileName;
|
||||
if(empty($fileName)) return $this->sendError(sprintf($this->lang->error->notempty, $this->lang->release->fileName));
|
||||
if(empty($fileName)) return $this->sendError(array('fileName' => sprintf($this->lang->error->notempty, $this->lang->release->fileName)));
|
||||
|
||||
$html = '';
|
||||
if($type == 'story' or $type == 'all') $html .= $this->releaseZen->buildStoryDataForExport();
|
||||
|
||||
@@ -12,8 +12,8 @@ namespace zin;
|
||||
|
||||
formPanel
|
||||
(
|
||||
set::target('_self'),
|
||||
set::title($lang->release->export),
|
||||
set::ajax(array('closeModal' => true)),
|
||||
formGroup
|
||||
(
|
||||
set::label($lang->release->fileName),
|
||||
|
||||
Reference in New Issue
Block a user