Skip to content

Feature/pagination datatable#293

Merged
brylie merged 16 commits intodevelopfrom
feature/pagination-datatable
Aug 3, 2015
Merged

Feature/pagination datatable#293
brylie merged 16 commits intodevelopfrom
feature/pagination-datatable

Conversation

@JuusoV
Copy link
Copy Markdown
Contributor

@JuusoV JuusoV commented Jul 30, 2015

Closing #259

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean up.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move loading state logic into own function. E.g. Template.created ...

function updateLoadingState (loadingState, took) {
  if (loadingState ) {
    $('#loadingState').html("Loaded! Took <b>" + took + "</b>ms");
  } else {
    $('#loadingState').html("Loading");
  }
}

@brylie
Copy link
Copy Markdown
Contributor

brylie commented Aug 3, 2015

I went ahead and added a few clarifying comments. It is important that every significant line of logic be accompanied by clear, descriptive comments.

Also, there is one small refactor suggestion for the loading state helper text.

@brylie
Copy link
Copy Markdown
Contributor

brylie commented Aug 3, 2015

I have added a task to refactor the 'loading state indicator code in the dashboard logic.

brylie added a commit that referenced this pull request Aug 3, 2015
@brylie brylie merged commit 7f7e296 into develop Aug 3, 2015
@brylie brylie removed the in progress label Aug 3, 2015
@brylie brylie deleted the feature/pagination-datatable branch August 6, 2015 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants