$GLOBALS['bottomScripts'][] = $this->baseURL . 'photoswipe/lib/klass.min.js';
$GLOBALS['bottomScripts'][] = $this->baseURL . 'photoswipe/code.photoswipe.jquery-3.0.5.js';
$GLOBALS['bottomScripts'][] = $this->baseURL . "fancybox/jquery.fancybox.js";
- $GLOBALS['bottomScripts'][] = $this->glmAppBaseURL . 'libjs/external.js';
+ $GLOBALS['bottomScripts'][] = $this->baseURL . 'libjs/external.js';
$GLOBALS['bottomScripts'][] = $this->baseURL . "libjs/pagefunctions.js";
}
--- /dev/null
+
+/*
+ * Open all links that are not of the site to open in new window
+ */
+
+
+$('a').each(function() {
+ var urlPattern = new RegExp('/' + window.location.host + '/');
+ if( !urlPattern.test(this.href)
+ && !$(this).hasClass('thickbox')
+ && !$(this).hasClass('colorbox')
+ && !$(this).hasClass('various')
+ && !$(this).hasClass('phototitle')
+ && !$(this).hasClass('photoimg')
+ && ($(this).attr('href') != "#")
+ && ($(this).attr('href') != "")
+ && ($(this).attr('href') != null)
+ ) {
+ $(this).click(function(event) {
+ event.preventDefault();
+ event.stopPropagation();
+ window.open(this.href, '_blank');
+ });
+ }
+});