Skip to content

Commit

Permalink
have customizer output Bootstrap Theme too; fixes #12003
Browse files Browse the repository at this point in the history
  • Loading branch information
cvrebert committed Jan 8, 2014
1 parent 07309ed commit c635d8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/assets/js/customizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,12 @@ window.onload = function () { // wait for load in a dumb way because B-0
$(this).val() && (vars[$(this).prev().text()] = $(this).val())
})

var bsLessSource = generateLESS('bootstrap.less', lessFileIncludes, vars)
var bsLessSource = generateLESS('bootstrap.less', lessFileIncludes, vars)
var themeLessSource = generateLESS('theme.less', lessFileIncludes, vars)

try {
compileLESS(bsLessSource, 'bootstrap', result)
compileLESS(themeLessSource, 'bootstrap-theme', result)
} catch (err) {
return showError('<strong>Ruh roh!</strong> Could not parse less files.', err)
}
Expand Down

3 comments on commit c635d8f

@zlatanvasovic
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you also add theme switch? Not everyone wants theme.

@cvrebert
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Then they can just toss the file into /dev/null.

@zlatanvasovic
Copy link
Contributor

@zlatanvasovic zlatanvasovic commented on c635d8f Jan 8, 2014 via email

Choose a reason for hiding this comment

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

Please sign in to comment.