Commit ae6999ff authored by Carsten  Rose's avatar Carsten Rose
Browse files

Fabric 'dirty' - work in progress

parent 7f1e4e84
......@@ -3365,7 +3365,6 @@ Parameter: sqlValidate
* *messageFail* - Message to show. E.g.: *messageFail* = `There is already a person called {{firstname:F:all}} {{name:F:all}}`
.. _slave-id:
Parameter: slaveId
......
......@@ -180,7 +180,6 @@ abstract class AbstractBuildForm {
$htmlSubrecords = '';
$htmlElements = '';
$json = array();
$flagFabric = false;
// After action 'afterSave', it's necessary to reinitialize the FeSpecNative
if (!empty($latestFeSpecNative)) {
......@@ -198,11 +197,6 @@ abstract class AbstractBuildForm {
// <form>
if ($mode === FORM_LOAD) {
$htmlHead = $this->head();
if ((count(OnArray::filter($this->feSpecNative, FE_TYPE, FE_TYPE_ANNOTATE)) > 0) ||
(count(OnArray::filter($this->feSpecNative, FE_TYPE, FE_TYPE_IMAGE_CUT)) > 0)
) {
$flagFabric = true;
}
}
$filter = $this->getProcessFilter();
......@@ -234,7 +228,7 @@ abstract class AbstractBuildForm {
// <form>
if ($mode === FORM_LOAD) {
$htmlT3vars = $this->prepareT3VarsForSave();
$htmlTail = $this->tail($flagFabric);
$htmlTail = $this->tail();
$htmlSubrecords = $this->doSubrecords();
}
$htmlHidden = $this->buildAdditionalFormElements();
......@@ -805,7 +799,7 @@ abstract class AbstractBuildForm {
/**
*
*/
abstract public function tail($flagFabric = false);
abstract public function tail();
/**
*
......
......@@ -512,7 +512,7 @@ class BuildFormBootstrap extends AbstractBuildForm {
/**
* @return string
*/
public function tail($flagFabric = false) {
public function tail() {
$html = '';
$deleteUrl = '';
......@@ -554,8 +554,6 @@ class BuildFormBootstrap extends AbstractBuildForm {
$dirtyAction = ($this->formSpec[F_DIRTY_MODE] == DIRTY_MODE_NONE) ? '' : "dirtyUrl: '$apiDir/dirty.php',";
$fabricJs = $flagFabric ? 'var qfqFabric = new QfqNS.Fabric(); qfqFabric.initialize($(".' . FABRIC_CSS_CLASS . '"));' : '';
$html .= '</form>'; // <form class="form-horizontal" ...
$html .= <<<EOF
<script type="text/javascript">
......@@ -575,8 +573,6 @@ class BuildFormBootstrap extends AbstractBuildForm {
});
var qfqRecordList = new QfqNS.QfqRecordList('$apiDeletePhp');
$fabricJs
})
</script>
EOF;
......
......@@ -96,7 +96,7 @@ class BuildFormPlain extends AbstractBuildForm {
/**
* @return string
*/
public function tail($flagFabric = false) {
public function tail() {
$html = '';
// $html .= $this->buildNewSip();
......
......@@ -130,7 +130,7 @@ class BuildFormTable extends AbstractBuildForm {
/**
* @return string
*/
public function tail($flagFabric = false) {
public function tail() {
$html = '';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment