From 14c3fd75a103dcc51c6d16c4522f22b0542de646 Mon Sep 17 00:00:00 2001 From: Julian Seidenberg Date: Thu, 5 Apr 2012 18:15:44 +1200 Subject: [PATCH] ENHANCEMENT: SSF-168 refactoring print button so that it opens print view in a new window. This is useful for debugging and also useful for when someone wants to use the print view not for printing, but for viewing a clean version of a gridfield without the surrounding CMS, using the view for copying and pasting into another app, for example. --- javascript/GridField.js | 13 +++---------- templates/Includes/GridField_print.ss | 5 +++-- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/javascript/GridField.js b/javascript/GridField.js index 1ced97eec..a19964623 100644 --- a/javascript/GridField.js +++ b/javascript/GridField.js @@ -119,15 +119,7 @@ this.setUUID(new Date().getTime()); }, onclick: function(e){ - var self = this, iframeID = 'gridfield-print-iframe' + this.getUUID(); - var printIframe = $('#' + iframeID); - - if(!printIframe.length){ - printIframe = $('