Permalink
Browse files

Allowing themeing of the Loading Spinner after the update

  • Loading branch information...
1 parent 9208c19 commit 1c7e202512d4eedcdc1b1013f03b605394119e85 @joshholt joshholt committed with etgryphon Mar 29, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 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();
}
},

0 comments on commit 1c7e202

Please sign in to comment.