Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy Compose YAML to Clipboard #527

Merged
merged 1 commit into from
Jun 11, 2015
Merged

Conversation

dharmamike
Copy link
Collaborator

No description provided.

composeDialog = base.initiateDialog(response.compose_yaml);
composeDialog.dialog('open');

$('.clipboard-copy').attr('data-clipboard-text', $('#composeYaml').text());
Copy link
Contributor

Choose a reason for hiding this comment

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

The OCD in me does not like the hardcoded selectors here, but I have a feeling you don't want to look at these lines of code anymore, 😉

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the alternative is to add these things to the options or defaultOptions object?

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah

@alexwelch
Copy link
Contributor

👍

@dharmamike dharmamike force-pushed the feature/clipboard-copy-compose branch from ceaa15a to 28c3436 Compare June 11, 2015 16:23
@rheinwein
Copy link
Collaborator

👍

@dharmamike dharmamike force-pushed the feature/clipboard-copy-compose branch from 28c3436 to 52f3637 Compare June 11, 2015 19:13
Signed-off-by: Laura Frank <ljfrank@gmail.com>
@dharmamike dharmamike force-pushed the feature/clipboard-copy-compose branch from 52f3637 to 0c88b55 Compare June 11, 2015 19:17
@dharmamike dharmamike merged commit 0c88b55 into master Jun 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants