* default block name when add block.
This commit is contained in:
@@ -64,6 +64,7 @@ class block extends control
|
||||
$this->view->blocks = $this->fetch('block', 'main', "module=$module&id=$id");
|
||||
}
|
||||
|
||||
$this->view->title = $title;
|
||||
$this->view->block = $this->block->getByID($id);
|
||||
$this->view->blockID = $id;
|
||||
$this->view->title = $title;
|
||||
|
||||
@@ -20,7 +20,7 @@ function getBlocks(moduleID)
|
||||
}
|
||||
if(moduleID == 'html' || moduleID == 'dynamic' || moduleID == 'flowchart')
|
||||
{
|
||||
getNotSourceParams(moduleID);
|
||||
getNotSourceParams(moduleID, blockID);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -38,3 +38,10 @@ if($type == 'html')
|
||||
<tfoot><tr><td colspan='2' class='text-center'><?php echo html::submitButton()?></td></tr></tfoot>
|
||||
</table>
|
||||
</form>
|
||||
<script>
|
||||
$(function()
|
||||
{
|
||||
options = $('#modules').find("option").text();
|
||||
if($('#title').val() == '') $('#title').val($('#modules').find("option:selected").text());
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -62,7 +62,7 @@ $themeRoot = $webRoot . "theme/";
|
||||
$(function()
|
||||
{
|
||||
options = $('#moduleBlock').find("option").text();
|
||||
if(options.indexOf($('#title').val()) >= 0) $('#title').val($('#moduleBlock').find("option:selected").text());
|
||||
if($('#title').val() == '') $('#title').val($('#moduleBlock').find("option:selected").text());
|
||||
})
|
||||
</script>
|
||||
<?php endif;?>
|
||||
|
||||
Reference in New Issue
Block a user