All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Wood <michael.g.wood@intel.com>
To: toaster@yoctoproject.org
Subject: Re: [review-request][PATCH 3/3] toaster: Don't store table data in the browser
Date: Tue, 06 Oct 2015 17:08:50 +0100	[thread overview]
Message-ID: <5613F212.8040806@intel.com> (raw)
In-Reply-To: <1443692010-14895-4-git-send-email-elliot.smith@intel.com>

Just for the record this patch set was submitted upstream (I updated the 
wrong thread)

Michael

On 01/10/15 10:33, Elliot Smith wrote:
> As table data is no longer loaded from the history stack
> (it's refreshed from the server on navigation), remove
> the onpopstate event handler and the code which pushes
> the page data onto the stack.
>
> [YOCTO #7660]
>
> Signed-off-by: Elliot Smith <elliot.smith@intel.com>
> ---
>   bitbake/lib/toaster/toastergui/static/js/table.js | 12 ------------
>   1 file changed, 12 deletions(-)
>
> diff --git a/bitbake/lib/toaster/toastergui/static/js/table.js b/bitbake/lib/toaster/toastergui/static/js/table.js
> index 99b99a0..b30b552 100644
> --- a/bitbake/lib/toaster/toastergui/static/js/table.js
> +++ b/bitbake/lib/toaster/toastergui/static/js/table.js
> @@ -33,14 +33,6 @@ function tableInit(ctx){
>   
>     loadData(tableParams);
>   
> -  window.onpopstate = function(event){
> -    if (event.state){
> -      tableParams = event.state.tableParams;
> -      /* We skip loadData and just update the table */
> -      updateTable(event.state.tableData);
> -    }
> -  };
> -
>     function loadData(tableParams){
>       $.ajax({
>           type: "GET",
> @@ -49,10 +41,6 @@ function tableInit(ctx){
>           headers: { 'X-CSRFToken' : $.cookie('csrftoken')},
>           success: function(tableData) {
>             updateTable(tableData);
> -          window.history.replaceState({
> -              tableData: tableData,
> -              tableParams: tableParams
> -          }, null, libtoaster.dumpsUrlParams(tableParams));
>           }
>       });
>     }



      reply	other threads:[~2015-10-06 16:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-01  9:33 [review-request][PATCH 0/3][v2] Prevent stale data in ToasterTables Elliot Smith
2015-10-01  9:33 ` [review-request][PATCH 1/3] toaster: Don't add new history entries when table data loads Elliot Smith
2015-10-01  9:33 ` [review-request][PATCH 2/3] toaster: Don't HTTP cache ToasterTable responses Elliot Smith
2015-10-01  9:33 ` [review-request][PATCH 3/3] toaster: Don't store table data in the browser Elliot Smith
2015-10-06 16:08   ` Michael Wood [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5613F212.8040806@intel.com \
    --to=michael.g.wood@intel.com \
    --cc=toaster@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.