[freeside-commits] branch FREESIDE_3_BRANCH updated. 59dabb780e7fa25290392bb3c40d3f87b404463d

Ivan ivan at 420.am
Tue Oct 27 09:44:25 PDT 2015


The branch, FREESIDE_3_BRANCH has been updated
       via  59dabb780e7fa25290392bb3c40d3f87b404463d (commit)
      from  3a2b8908272ca64add0522d1e6536fa011b3ef9b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 59dabb780e7fa25290392bb3c40d3f87b404463d
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Oct 27 09:40:45 2015 -0700

    progressbar fix for elements/ exclusion, RT#38752

diff --git a/FS/FS/CGI.pm b/FS/FS/CGI.pm
index 972625f..e1645f0 100644
--- a/FS/FS/CGI.pm
+++ b/FS/FS/CGI.pm
@@ -244,17 +244,13 @@ sub rooturl {
   $url_string =~
     s{
        /
-       (browse|config|docs|edit|graph|misc|search|view|pref|elements|rt|torrus)
+       (browse|config|docs|edit|graph|misc|search|view|pref|rt|torrus)
        (/process)?
        ([\w\-\.\/]*)
        $
      }
      {}x;
 
-  #elements because of progress-popup.html... 
-  #XXX remove anything from elements that is called directly & prevent
-  #those pages from being served up
-
   $url_string .= '/' unless $url_string =~ /\/$/;
 
   $url_string;
diff --git a/httemplate/elements/progress-init.html b/httemplate/elements/progress-init.html
index 2728240..e38dde6 100644
--- a/httemplate/elements/progress-init.html
+++ b/httemplate/elements/progress-init.html
@@ -161,7 +161,7 @@ if ( ref($url_or_message) ) { #its a message or something
   %dest_info = ( 'url' => $url_or_message );
 }
 
-my $progress_url = URI->new($fsurl.'elements/progress-popup.html');
+my $progress_url = URI->new($fsurl.'misc/progress-popup.html');
 $progress_url->query_form(
   'jobnum'    => '_JOBNUM_',
   'formname'  => $formname,
diff --git a/httemplate/elements/jsrsServer.html b/httemplate/misc/jsrsServer.html
similarity index 100%
rename from httemplate/elements/jsrsServer.html
rename to httemplate/misc/jsrsServer.html
diff --git a/httemplate/elements/progress-popup.html b/httemplate/misc/progress-popup.html
similarity index 98%
rename from httemplate/elements/progress-popup.html
rename to httemplate/misc/progress-popup.html
index a37cf24..8e2d676 100644
--- a/httemplate/elements/progress-popup.html
+++ b/httemplate/misc/progress-popup.html
@@ -14,7 +14,7 @@
   <BODY BGCOLOR="#ccccff" onLoad="refreshStatus()">
 
 <% include('/elements/xmlhttp.html',
-              'url'  => $p.'elements/jsrsServer.html',
+              'url'  => $p.'misc/jsrsServer.html',
               'subs' => [ 'job_status' ],
            )
 %>

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/CGI.pm                                      |    6 +-----
 httemplate/elements/progress-init.html            |    2 +-
 httemplate/{elements => misc}/jsrsServer.html     |    0
 httemplate/{elements => misc}/progress-popup.html |    2 +-
 4 files changed, 3 insertions(+), 7 deletions(-)
 rename httemplate/{elements => misc}/jsrsServer.html (100%)
 rename httemplate/{elements => misc}/progress-popup.html (98%)




More information about the freeside-commits mailing list