commit 087ea7d44f11e8bc5fcb075e64eb98621e4f8202
parent 51c9814d6917fd270ffd2b984eac53b37ba2b475
Author: Jan Dankert <devnull@localhost>
Date: Wed, 5 Sep 2018 00:06:03 +0200
Die Konstanten OR_METHOD und OR_ACTION gibt es nicht mehr.
Diffstat:
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/modules/template-engine/components/html/link/Link.class.php b/modules/template-engine/components/html/link/Link.class.php
@@ -100,7 +100,7 @@ class LinkComponent extends Component
if (isset($this->subaction))
echo ' data-method="' . $this->htmlvalue($this->subaction) . '"';
else
- echo ' data-method="<?php echo OR_METHOD ?>"';
+ echo ' data-method="'.$this->request->method.'"';
if (isset($this->id))
echo ' data-id="' . $this->htmlvalue($this->id) . '"';
@@ -132,7 +132,7 @@ class LinkComponent extends Component
if (! empty($this->subaction))
echo $this->htmlvalue($this->subaction);
else
- echo "<?php echo OR_METHOD ?>";
+ echo $this->request->method;
echo "",";
echo ""id":"";
diff --git a/modules/template-engine/components/html/link/link.js b/modules/template-engine/components/html/link/link.js
@@ -9,6 +9,7 @@ $(document).on('orViewLoaded',function(event, data) {
});
+/*
$(document).on('orHeaderLoaded',function(event, data) {
// Links aktivieren...
@@ -19,7 +20,7 @@ $(document).on('orHeaderLoaded',function(event, data) {
} );
});
-
+*/
/**
diff --git a/modules/template-engine/components/html/link/link.min.js b/modules/template-engine/components/html/link/link.min.js
@@ -1 +1 @@
-;$(document).on('orViewLoaded',function(e,n){$(e.target).find('.clickable').orLinkify();$(e.target).find('.clickable a').click(function(e){e.preventDefault()})});$(document).on('orHeaderLoaded',function(e,n){$('#title .clickable').orLinkify();$(e.target).find('.clickable a').click(function(e){e.preventDefault()})});function submitLink(e,n){var t=jQuery.parseJSON(n),i='./api/';t.output='json';$.ajax({'type':'POST',url:i,data:t,success:function(n,t,i){$('div.panel div.status div.loader').html(' ');doResponse(n,t,e)}})};-
\ No newline at end of file
+;$(document).on('orViewLoaded',function(n,t){$(n.target).find('.clickable').orLinkify();$(n.target).find('.clickable a').click(function(n){n.preventDefault()})});function submitLink(n,t){var e=jQuery.parseJSON(t),i='./api/';e.output='json';$.ajax({'type':'POST',url:i,data:e,success:function(t,e,i){$('div.panel div.status div.loader').html(' ');doResponse(t,e,n)}})};+
\ No newline at end of file