diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-08-05 09:24:27 -0700 | 
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-08-05 09:24:27 -0700 | 
| commit | 9f396178cedc96abb282e72ff0e843e255c8225a (patch) | |
| tree | 48c514bea04f4c5f07599086a8b79d99fcb70230 /modules/gallery | |
| parent | 397468c47b8fc3fefeb54ff19a73980ed1dd8c20 (diff) | |
Revert "Allow a theme to override the page refresh mechanism.  Create a new"
This reverts commit 1f014aae6c16bbda62d8f5937180f11ccb0eb1b1.
Diffstat (limited to 'modules/gallery')
| -rw-r--r-- | modules/gallery/js/quick.js | 4 | ||||
| -rw-r--r-- | modules/gallery/tests/xss_data.txt | 68 | ||||
| -rw-r--r-- | modules/gallery/views/admin_maintenance_show_log.html.php | 2 | ||||
| -rw-r--r-- | modules/gallery/views/admin_maintenance_task.html.php | 2 | 
4 files changed, 37 insertions, 39 deletions
| diff --git a/modules/gallery/js/quick.js b/modules/gallery/js/quick.js index 4753808e..fda6470f 100644 --- a/modules/gallery/js/quick.js +++ b/modules/gallery/js/quick.js @@ -67,9 +67,9 @@ var quick_do = function(cont, pane, img) {              img.css("margin-top", 0);            }          } else if (data.location) { -          $.gallery_location(data.location); +          window.location = data.location;          } else if (data.reload) { -          $.gallery_reload(); +          window.location.reload();          }        }      }); diff --git a/modules/gallery/tests/xss_data.txt b/modules/gallery/tests/xss_data.txt index 29d223b7..0e118ce7 100644 --- a/modules/gallery/tests/xss_data.txt +++ b/modules/gallery/tests/xss_data.txt @@ -496,25 +496,24 @@ themes/admin_default/views/admin.html.php                    20  DIRTY $theme->s  themes/admin_default/views/admin.html.php                    21  DIRTY $theme->script("jquery.form.js")  themes/admin_default/views/admin.html.php                    22  DIRTY $theme->script("jquery-ui.js")  themes/admin_default/views/admin.html.php                    23  DIRTY $theme->script("gallery.common.js") -themes/admin_default/views/admin.html.php                    25  DIRTY $theme->script("gallery.reload.js") -themes/admin_default/views/admin.html.php                    30  DIRTY $theme->script("gallery.dialog.js") -themes/admin_default/views/admin.html.php                    31  DIRTY $theme->script("superfish/js/superfish.js") -themes/admin_default/views/admin.html.php                    32  DIRTY $theme->script("jquery.dropshadow.js") -themes/admin_default/views/admin.html.php                    33  DIRTY $theme->script("ui.init.js") -themes/admin_default/views/admin.html.php                    35  DIRTY $theme->admin_head() -themes/admin_default/views/admin.html.php                    38  DIRTY $theme->body_attributes() -themes/admin_default/views/admin.html.php                    39  DIRTY $theme->admin_page_top() -themes/admin_default/views/admin.html.php                    45  DIRTY $theme->site_status() -themes/admin_default/views/admin.html.php                    47  DIRTY $theme->admin_header_top() -themes/admin_default/views/admin.html.php                    50  DIRTY $csrf -themes/admin_default/views/admin.html.php                    56  DIRTY $theme->admin_menu() -themes/admin_default/views/admin.html.php                    58  DIRTY $theme->admin_header_bottom() -themes/admin_default/views/admin.html.php                    64  DIRTY $theme->messages() -themes/admin_default/views/admin.html.php                    65  DIRTY $content -themes/admin_default/views/admin.html.php                    71  DIRTY $sidebar -themes/admin_default/views/admin.html.php                    76  DIRTY $theme->admin_footer() -themes/admin_default/views/admin.html.php                    78  DIRTY $theme->admin_credits() -themes/admin_default/views/admin.html.php                    82  DIRTY $theme->admin_page_bottom() +themes/admin_default/views/admin.html.php                    28  DIRTY $theme->script("gallery.dialog.js") +themes/admin_default/views/admin.html.php                    29  DIRTY $theme->script("superfish/js/superfish.js") +themes/admin_default/views/admin.html.php                    30  DIRTY $theme->script("jquery.dropshadow.js") +themes/admin_default/views/admin.html.php                    31  DIRTY $theme->script("ui.init.js") +themes/admin_default/views/admin.html.php                    33  DIRTY $theme->admin_head() +themes/admin_default/views/admin.html.php                    36  DIRTY $theme->body_attributes() +themes/admin_default/views/admin.html.php                    37  DIRTY $theme->admin_page_top() +themes/admin_default/views/admin.html.php                    43  DIRTY $theme->site_status() +themes/admin_default/views/admin.html.php                    45  DIRTY $theme->admin_header_top() +themes/admin_default/views/admin.html.php                    48  DIRTY $csrf +themes/admin_default/views/admin.html.php                    54  DIRTY $theme->admin_menu() +themes/admin_default/views/admin.html.php                    56  DIRTY $theme->admin_header_bottom() +themes/admin_default/views/admin.html.php                    62  DIRTY $theme->messages() +themes/admin_default/views/admin.html.php                    63  DIRTY $content +themes/admin_default/views/admin.html.php                    69  DIRTY $sidebar +themes/admin_default/views/admin.html.php                    74  DIRTY $theme->admin_footer() +themes/admin_default/views/admin.html.php                    76  DIRTY $theme->admin_credits() +themes/admin_default/views/admin.html.php                    80  DIRTY $theme->admin_page_bottom()  themes/admin_default/views/block.html.php                    2   DIRTY $id  themes/admin_default/views/block.html.php                    2   DIRTY $css_id  themes/admin_default/views/block.html.php                    5   DIRTY $id @@ -602,22 +601,21 @@ themes/default/views/page.html.php                           48  DIRTY $theme->s  themes/default/views/page.html.php                           49  DIRTY $theme->script("jquery.form.js")  themes/default/views/page.html.php                           50  DIRTY $theme->script("jquery-ui.js")  themes/default/views/page.html.php                           51  DIRTY $theme->script("gallery.common.js") -themes/default/views/page.html.php                           53  DIRTY $theme->script("gallery.reload.js") -themes/default/views/page.html.php                           58  DIRTY $theme->script("gallery.dialog.js") -themes/default/views/page.html.php                           59  DIRTY $theme->script("gallery.form.js") -themes/default/views/page.html.php                           60  DIRTY $theme->script("superfish/js/superfish.js") -themes/default/views/page.html.php                           61  DIRTY $theme->script("jquery.localscroll.js") -themes/default/views/page.html.php                           62  DIRTY $theme->script("ui.init.js") -themes/default/views/page.html.php                           66  DIRTY $theme->script("jquery.scrollTo.js") -themes/default/views/page.html.php                           67  DIRTY $theme->script("gallery.show_full_size.js") -themes/default/views/page.html.php                           69  DIRTY $theme->script("flowplayer.js") -themes/default/views/page.html.php                           72  DIRTY $theme->head() -themes/default/views/page.html.php                           75  DIRTY $theme->body_attributes() -themes/default/views/page.html.php                           76  DIRTY $theme->page_top() -themes/default/views/page.html.php                           78  DIRTY $theme->site_status() -themes/default/views/page.html.php                           86  DIRTY $theme->messages() -themes/default/views/page.html.php                           87  DIRTY $content -themes/default/views/page.html.php                           101 DIRTY $theme->page_bottom() +themes/default/views/page.html.php                           56  DIRTY $theme->script("gallery.dialog.js") +themes/default/views/page.html.php                           57  DIRTY $theme->script("gallery.form.js") +themes/default/views/page.html.php                           58  DIRTY $theme->script("superfish/js/superfish.js") +themes/default/views/page.html.php                           59  DIRTY $theme->script("jquery.localscroll.js") +themes/default/views/page.html.php                           60  DIRTY $theme->script("ui.init.js") +themes/default/views/page.html.php                           64  DIRTY $theme->script("jquery.scrollTo.js") +themes/default/views/page.html.php                           65  DIRTY $theme->script("gallery.show_full_size.js") +themes/default/views/page.html.php                           67  DIRTY $theme->script("flowplayer.js") +themes/default/views/page.html.php                           70  DIRTY $theme->head() +themes/default/views/page.html.php                           73  DIRTY $theme->body_attributes() +themes/default/views/page.html.php                           74  DIRTY $theme->page_top() +themes/default/views/page.html.php                           76  DIRTY $theme->site_status() +themes/default/views/page.html.php                           84  DIRTY $theme->messages() +themes/default/views/page.html.php                           85  DIRTY $content +themes/default/views/page.html.php                           99  DIRTY $theme->page_bottom()  themes/default/views/pager.html.php                          13  DIRTY $url  themes/default/views/pager.html.php                          20  DIRTY $previous_page  themes/default/views/pager.html.php                          20  DIRTY $url diff --git a/modules/gallery/views/admin_maintenance_show_log.html.php b/modules/gallery/views/admin_maintenance_show_log.html.php index ac593de7..9d850986 100644 --- a/modules/gallery/views/admin_maintenance_show_log.html.php +++ b/modules/gallery/views/admin_maintenance_show_log.html.php @@ -1,7 +1,7 @@  <?php defined("SYSPATH") or die("No direct script access.") ?>  <script type="text/javascript">    dismiss = function() { -    $.gallery_reload(); +    window.location.reload();    }    download = function(){      // send request diff --git a/modules/gallery/views/admin_maintenance_task.html.php b/modules/gallery/views/admin_maintenance_task.html.php index 6ab87e3f..0eb0b38c 100644 --- a/modules/gallery/views/admin_maintenance_task.html.php +++ b/modules/gallery/views/admin_maintenance_task.html.php @@ -47,7 +47,7 @@    $(".gProgressBar").progressbar({value: 0});    update();    dismiss = function() { -    $.gallery_reload(); +    window.location.reload();    }  </script>  <div id="gProgress"> | 
