summaryrefslogtreecommitdiffstats
path: root/js/public/app.js
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2013-06-07 19:15:25 +0200
committerMorris Jobke <morris.jobke@gmail.com>2013-06-07 19:15:25 +0200
commit23cf5cfe6cf9c4840114087030b319baa26aaf06 (patch)
treece421612b9faff00d512a4770715fd0ebe198ab2 /js/public/app.js
parentfa7553a05d27b6a8179aa609d4d2a26490d0b64a (diff)
fix open in new window
Diffstat (limited to 'js/public/app.js')
-rw-r--r--js/public/app.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/public/app.js b/js/public/app.js
index bd8afeac7..c345d54d5 100644
--- a/js/public/app.js
+++ b/js/public/app.js
@@ -214,8 +214,9 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
};
openCurrentItem = function(scrollArea) {
var $item;
- $item = getCurrentItem(scrollArea);
- return $item.find('.item_title a').trigger('click');
+ $item = getCurrentItem(scrollArea).find('.item_title a');
+ $item.trigger('click');
+ return window.open($item.attr('href'), '_blank');
};
return $($window.document).keydown(function(e) {
var focused, scrollArea;