andre 5 месяцев назад
Родитель
Сommit
85ea3e45ff

+ 2 - 2
app/UI/Client/Templates/assets/js/setting/index.js

@@ -78,10 +78,10 @@ mgEventHandler.on('ModalLoaded', null,function(){
                  $("#addalertfooter").append(' Nutzen Sie dafür die Edit Funktion!');
             }else{
                 $("#addalertfooter").append(' Tragen Sie die vorgegebenen Werte bei Ihrem Domain Registrar ein oder transferieren Sie Ihre Domain zu ThurData');
+                $("#transferDomain").removeClass('hidden');
                 $("#transferDomain").click(function(){
-                    window.location.href = "cart.php?a=add&domain=transfer&sld=" . maildomain;
+                    document.location.href = 'cart.php?a=add&domain=transfer&sld=' . maildomain;
                 });
-                $("#transferDomain").removeClass('hidden');
             }
         }
     }

+ 0 - 76
core/UI/Widget/Buttons/ModalActionButtons/BaseRedirectButton.php

@@ -23,82 +23,6 @@ class BaseRedirectButton extends BaseContainer
     protected $rawUrl = null;
     protected $redirectParams = [];
 
-    public function initContent()
-    {
-        $this->htmlAttributes['@click.middle'] = 'redirect($event, ' . $this->parseCustomParams() . ', true)';
-        $this->htmlAttributes['@click'] = 'redirect($event, ' . $this->parseCustomParams() . ')';
-
-    }
-
-    protected function parseCustomParams()
-    {
-        if (count($this->redirectParams) === 0 && $this->rawUrl === null)
-        {
-            return '{}';
-        }
-
-        return $this->parseListTOJsString($this->redirectParams);
-    }
-    
-    protected function parseListTOJsString($params)
-    {
-        $jsString = '{';
-        
-        if ($this->rawUrl !== null)
-        {
-            $params['rawUrl'] = $this->rawUrl;
-        }        
-        
-        foreach ($params as $key => $value)
-        {
-            $jsString .= ' ' . str_replace('-', '__', $key) . ': ' . (is_array($value) ? ($this->parseListTOJsString($value) . ',') : ("'" . (string) $value) . "',");
-        }
-            
-        $jsString = trim($jsString, ',') . ' } ';
-        
-        return $jsString;
-    }
-    
-    public function setRawUrl($url)
-    {
-        $this->rawUrl = $url;
-        
-        return $this;
-    }
-    
-    public function addRedirectParam($key, $value)
-    {
-        $this->redirectParams[$key] = $value;
-        
-        $this->updateHtmlAttributesByRedirectParams();
-        
-        return $this;
-    }
-    
-    public function setRedirectParams($paramsList)
-    {
-        $this->redirectParams = $paramsList;
-        
-        $this->updateHtmlAttributesByRedirectParams();
-        
-        return $this;
-    }
-    
-    protected function updateHtmlAttributesByRedirectParams()
-    {
-        foreach ($this->redirectParams as $key => $value)
-        {
-            $this->updateHtmlAttribute($key, $value);
-        }
-    }
-    
-    protected function updateHtmlAttribute($key, $value)
-    {
-        if (strpos($value, ':') === 0)
-        {
-            $this->addHtmlAttribute(':data-' . $key , 'dataRow.' . trim($value, ':'));
-        }
-    }
 }