Projekt

Allgemein

Profil

GX-Bug #51553 » AddTargetToLinksFix.patch

Till Tepelmann, 11.05.2017 20:17

Unterschiede anzeigen:

src/system/classes/shop_content/PopupContentContentView.inc.php (revision )
207 207

  
208 208
		foreach ($t_links as $t_link)
209 209
		{
210
			if($t_link->getAttribute('target')=='_blank')
211
			{
212
				$t_link->setAttribute('onclick', 'window.open("'.$t_link->getAttribute('href').'"); return false;');
213
			}
214
			else
215
			{
210
			$t_link->setAttribute('target', '_parent');
216
				$t_link->setAttribute('target', '_parent');
217
			}
211 218
		}
212 219

  
213 220
		$t_content = $t_dom_document->saveHTML();
    (1-1/1)