Created
July 29, 2015 02:01
-
-
Save kaw2k/751ddeec0b0a1453c8e2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var onSubmit = function(title, description) { | |
// Do your ajax here | |
console.log(title, description); | |
}; | |
// Here we are opening up a lighbox to edit a title and description | |
// They will be the intial value of our component | |
flux.actions.widget.lightbox({ | |
view: ProfileContextEditCreate, | |
title: 'My awesome title', | |
description: 'A description', | |
onSubmit: onSubmit | |
}); | |
// Here we are opening up a lighbox with blank title and description | |
flux.actions.widget.lightbox({ | |
view: ProfileContextEditCreate, | |
onSubmit: onSubmit | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment