Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allowing themeing of the Loading Spinner after the update

  • Loading branch information...
commit 1c7e202512d4eedcdc1b1013f03b605394119e85 1 parent 9208c19
@joshholt joshholt authored etgryphon committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 frameworks/foundation/views/loading_spinner.js
View
4 frameworks/foundation/views/loading_spinner.js
@@ -38,8 +38,10 @@ SCUI.LoadingSpinnerView = SC.View.extend({
stopIfSlowAction: null,
render: function(context, firstTime){
+ var theme = this.get('theme') || 'lightTrans';
+
if(firstTime){
- var classNames = ['loadingSpinner', 'lightTrans'];
+ var classNames = ['loadingSpinner', theme];
context.begin('div').addClass(classNames).addStyle({width: 18, height: 18, position: 'absolute'}).end();
}
},
Please sign in to comment.
Something went wrong with that request. Please try again.