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 ...@@ -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}}` * *messageFail* - Message to show. E.g.: *messageFail* = `There is already a person called {{firstname:F:all}} {{name:F:all}}`
.. _slave-id: .. _slave-id:
Parameter: slaveId Parameter: slaveId
......
...@@ -180,7 +180,6 @@ abstract class AbstractBuildForm { ...@@ -180,7 +180,6 @@ abstract class AbstractBuildForm {
$htmlSubrecords = ''; $htmlSubrecords = '';
$htmlElements = ''; $htmlElements = '';
$json = array(); $json = array();
$flagFabric = false;
// After action 'afterSave', it's necessary to reinitialize the FeSpecNative // After action 'afterSave', it's necessary to reinitialize the FeSpecNative
if (!empty($latestFeSpecNative)) { if (!empty($latestFeSpecNative)) {
...@@ -198,11 +197,6 @@ abstract class AbstractBuildForm { ...@@ -198,11 +197,6 @@ abstract class AbstractBuildForm {
// <form> // <form>
if ($mode === FORM_LOAD) { if ($mode === FORM_LOAD) {
$htmlHead = $this->head(); $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(); $filter = $this->getProcessFilter();
...@@ -234,7 +228,7 @@ abstract class AbstractBuildForm { ...@@ -234,7 +228,7 @@ abstract class AbstractBuildForm {
// <form> // <form>
if ($mode === FORM_LOAD) { if ($mode === FORM_LOAD) {
$htmlT3vars = $this->prepareT3VarsForSave(); $htmlT3vars = $this->prepareT3VarsForSave();
$htmlTail = $this->tail($flagFabric); $htmlTail = $this->tail();
$htmlSubrecords = $this->doSubrecords(); $htmlSubrecords = $this->doSubrecords();
} }
$htmlHidden = $this->buildAdditionalFormElements(); $htmlHidden = $this->buildAdditionalFormElements();
...@@ -805,7 +799,7 @@ abstract class AbstractBuildForm { ...@@ -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 { ...@@ -512,7 +512,7 @@ class BuildFormBootstrap extends AbstractBuildForm {
/** /**
* @return string * @return string
*/ */
public function tail($flagFabric = false) { public function tail() {
$html = ''; $html = '';
$deleteUrl = ''; $deleteUrl = '';
...@@ -554,8 +554,6 @@ class BuildFormBootstrap extends AbstractBuildForm { ...@@ -554,8 +554,6 @@ class BuildFormBootstrap extends AbstractBuildForm {
$dirtyAction = ($this->formSpec[F_DIRTY_MODE] == DIRTY_MODE_NONE) ? '' : "dirtyUrl: '$apiDir/dirty.php',"; $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 .= '</form>'; // <form class="form-horizontal" ...
$html .= <<<EOF $html .= <<<EOF
<script type="text/javascript"> <script type="text/javascript">
...@@ -575,8 +573,6 @@ class BuildFormBootstrap extends AbstractBuildForm { ...@@ -575,8 +573,6 @@ class BuildFormBootstrap extends AbstractBuildForm {
}); });
var qfqRecordList = new QfqNS.QfqRecordList('$apiDeletePhp'); var qfqRecordList = new QfqNS.QfqRecordList('$apiDeletePhp');
$fabricJs
}) })
</script> </script>
EOF; EOF;
......
...@@ -96,7 +96,7 @@ class BuildFormPlain extends AbstractBuildForm { ...@@ -96,7 +96,7 @@ class BuildFormPlain extends AbstractBuildForm {
/** /**
* @return string * @return string
*/ */
public function tail($flagFabric = false) { public function tail() {
$html = ''; $html = '';
// $html .= $this->buildNewSip(); // $html .= $this->buildNewSip();
......
...@@ -130,7 +130,7 @@ class BuildFormTable extends AbstractBuildForm { ...@@ -130,7 +130,7 @@ class BuildFormTable extends AbstractBuildForm {
/** /**
* @return string * @return string
*/ */
public function tail($flagFabric = false) { public function tail() {
$html = ''; $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