Return-Path: X-Original-To: apmail-oodt-commits-archive@www.apache.org Delivered-To: apmail-oodt-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 82005D93D for ; Thu, 28 Jun 2012 00:13:14 +0000 (UTC) Received: (qmail 33041 invoked by uid 500); 28 Jun 2012 00:13:14 -0000 Delivered-To: apmail-oodt-commits-archive@oodt.apache.org Received: (qmail 33004 invoked by uid 500); 28 Jun 2012 00:13:14 -0000 Mailing-List: contact commits-help@oodt.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@oodt.apache.org Delivered-To: mailing list commits@oodt.apache.org Received: (qmail 32995 invoked by uid 99); 28 Jun 2012 00:13:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jun 2012 00:13:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jun 2012 00:13:12 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id B799A238896F for ; Thu, 28 Jun 2012 00:12:52 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1354778 - in /oodt/trunk: CHANGES.txt balance/modules/puny/classes/Puny.class.php balance/modules/puny/static/js/puny.js Date: Thu, 28 Jun 2012 00:12:52 -0000 To: commits@oodt.apache.org From: skhudiky@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120628001252.B799A238896F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: skhudiky Date: Thu Jun 28 00:12:51 2012 New Revision: 1354778 URL: http://svn.apache.org/viewvc?rev=1354778&view=rev Log: OODT-472 Puny Module - Return to previous page once the user is done editing Modified: oodt/trunk/CHANGES.txt oodt/trunk/balance/modules/puny/classes/Puny.class.php oodt/trunk/balance/modules/puny/static/js/puny.js Modified: oodt/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/oodt/trunk/CHANGES.txt?rev=1354778&r1=1354777&r2=1354778&view=diff ============================================================================== --- oodt/trunk/CHANGES.txt (original) +++ oodt/trunk/CHANGES.txt Thu Jun 28 00:12:51 2012 @@ -4,6 +4,8 @@ Apache OODT Change Log Release 0.5 -------------------------------------------- +* OODT-472 Puny Module - Return to previous page once the user is done editing (skhudiky) + * OODT-467 Change SciPgeConfigFileWriter to DynamicConfigFileWriter (bfoster) * OODT-464 Add file staging support to CAS-PGE's XmlFilePgeConfigBuilder (bfoster) Modified: oodt/trunk/balance/modules/puny/classes/Puny.class.php URL: http://svn.apache.org/viewvc/oodt/trunk/balance/modules/puny/classes/Puny.class.php?rev=1354778&r1=1354777&r2=1354778&view=diff ============================================================================== --- oodt/trunk/balance/modules/puny/classes/Puny.class.php (original) +++ oodt/trunk/balance/modules/puny/classes/Puny.class.php Thu Jun 28 00:12:51 2012 @@ -121,8 +121,9 @@ class Puny { if ( !self::$commonResourcesLoaded ) { $js = "\r\n" . "var puny_module_root = '" . trim(App::Get()->settings['puny_module_root']) . "'\r\n" - . " puny_module_static = '" . trim(App::Get()->settings['puny_module_static']) ."';\r\n"; - App::Get()->response->addJavascript( $js, true ); // raw Javascript + . " puny_module_static = '" . trim(App::Get()->settings['puny_module_static']) ."'\r\n" + . " puny_current_url = '" . $_SERVER['HTTP_REFERER'] ."';\r\n"; + App::Get()->response->addJavascript( $js, true ); // raw Javascript // Add puny default styles $staticPath = trim(App::Get()->settings['puny_module_static']); Modified: oodt/trunk/balance/modules/puny/static/js/puny.js URL: http://svn.apache.org/viewvc/oodt/trunk/balance/modules/puny/static/js/puny.js?rev=1354778&r1=1354777&r2=1354778&view=diff ============================================================================== --- oodt/trunk/balance/modules/puny/static/js/puny.js (original) +++ oodt/trunk/balance/modules/puny/static/js/puny.js Thu Jun 28 00:12:51 2012 @@ -42,7 +42,7 @@ function punyInitEditor ( elmt ) { }; function punyCancel() { - window.location = site_root; + window.location = puny_current_url; } function punyPersistChanges(event) { @@ -51,6 +51,6 @@ function punyPersistChanges(event) { 'resourceId' : editingResourceId , 'content' : $('#gollum-editor-body').val() },function( data ) { - window.location = site_root; + window.location = puny_current_url; }, 'json'); }