Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Change default modal button css classes #113

Merged
merged 1 commit into from
Feb 6, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/forms/formviewwithfields.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ module.exports = class KDFormViewWithFields extends KDFormView
# buttons :
# Add :
# title : "Add"
# style : "modal-clean-gray"
# style : "solid light-gray medium"
# type : "submit"
# Delete :
# title : "Delete"
# style : "modal-clean-red"
# style : "solid red medium"
# callback : -> log "delete"
# Reset :
# title : "Reset"
# style : "modal-clean-red"
# style : "solid red medium"
# type : "reset"
# callback : (formOutput)->
# log formOutput," ::::::"
Expand Down
4 changes: 2 additions & 2 deletions src/components/modals/modalview.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,11 @@ module.exports = class KDModalView extends KDView
buttons :
OK :
title : ok.title
style : ok.style or "modal-clean-red"
style : ok.style or "solid red medium"
callback : ok.callback or noop
cancel :
title : cancel.title
style : cancel.style or "modal-cancel"
style : cancel.style or "solid light-gray medium"
callback : cancel.callback or noop
modal.addSubView options.subView if options.subView
modal
Expand Down
6 changes: 3 additions & 3 deletions src/components/modals/modalviewwithforms.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = class KDModalViewWithForms extends KDModalView
# buttons :
# Next :
# title : "Next"
# style : "modal-clean-gray"
# style : "solid light-gray medium"
# type : "submit"
# # callback : (formOutput)-> log formOutput,"Form 1 ::::::"
# fields :
Expand Down Expand Up @@ -69,11 +69,11 @@ module.exports = class KDModalViewWithForms extends KDModalView
# buttons :
# Submit :
# title : "Submit"
# style : "modal-clean-gray"
# style : "solid light-gray medium"
# type : "submit"
# Reset :
# title : "Reset"
# style : "modal-clean-red"
# style : "solid red medium"
# type : "reset"
# # callback : (formOutput)-> log formOutput,"Form 2 ::::::"
# fields :
Expand Down
6 changes: 3 additions & 3 deletions src/components/tabs/tabviewwithforms.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ module.exports = class KDTabViewWithForms extends KDTabView
# buttons :
# Next :
# title : "Next"
# style : "modal-clean-gray"
# style : "solid light-gray medium"
# type : "submit"
# # callback : (formOutput)-> log formOutput,"Form 1 ::::::"
# fields :
Expand Down Expand Up @@ -98,11 +98,11 @@ module.exports = class KDTabViewWithForms extends KDTabView
# buttons :
# Submit :
# title : "Submit"
# style : "modal-clean-gray"
# style : "solid light-gray medium"
# type : "submit"
# Reset :
# title : "Reset"
# style : "modal-clean-red"
# style : "solid red medium"
# type : "reset"
# # callback : (formOutput)-> log formOutput,"Form 2 ::::::"
# fields :
Expand Down