rename css selector to MAGIC

This commit is contained in:
Dennis Collinson 2012-04-19 14:18:55 -07:00
parent f7d320b622
commit 7253f190b5
2 changed files with 5 additions and 4 deletions

View file

@ -410,7 +410,7 @@ div[data-template=flow] {
// if you change this, check toggling the new publisher service broadcasts is still sensible
// the checkbox should be hidden, and in the off state the service icons should be lighter
// when the service icons are clicked they should be lighter, and toggle the hidden checkbox.
.services {
.magic-service-selector {
label { display : inline;}
input:not(:checked) + label {

View file

@ -1,6 +1,7 @@
<span class="service-selector-title">Broadcast:</span>
<div class="services">
<span class="service-selector-title">Broadcast</span>
<!--*CSS MAGIC* CHECKBOX IS HIDDEN AND IS CHECKED BY CLICKING THE LABEL, CHANGE THIS AT YOUR OWN PERIL, RUN JASMINE AFTER-->
<div class="magic-service-selector">
{{#each current_user.services}}
<input id="service_toggle_{{provider}}" type="checkbox" name="services" class="service" value="{{provider}}" />
<label for="service_toggle_{{provider}}"><img class="legacy-provider-image" src="/assets/social_media_logos/{{provider}}-16x16.png" data-provider="{{provider}}" /></label>