Commit 8de3c944 authored by Dave Lane's avatar Dave Lane
Browse files

shift span-buttons to real buttons, tweak styles, remove spurious 'hidden'...

shift span-buttons to real buttons, tweak styles, remove spurious 'hidden' attribute from buttons in course listing.
parent dfff06ee
...@@ -22,7 +22,7 @@ article.bff-form .container .credit { ...@@ -22,7 +22,7 @@ article.bff-form .container .credit {
#blog-feed-finder a { color: #076A1F; font-weight: bold; } #blog-feed-finder a { color: #076A1F; font-weight: bold; }
#blog-feed-finder a.hover { color: #000; } #blog-feed-finder a.hover { color: #000; }
#blog-feed-finder a.visited { color: #237E39; } #blog-feed-finder a.visited { color: #237E39; }
.bff-form .button { .bff-form button {
padding: 6px 8px; padding: 6px 8px;
color: #333 !important; color: #333 !important;
background-color: #97BB6D; background-color: #97BB6D;
...@@ -31,16 +31,16 @@ article.bff-form .container .credit { ...@@ -31,16 +31,16 @@ article.bff-form .container .credit {
text-transform: none; text-transform: none;
text-decoration: none; text-decoration: none;
} }
.bff-form .button:hover { .bff-form button:hover {
color: #000; color: #000;
box-shadow: 4px 4px 10px #999; box-shadow: 4px 4px 10px #999;
text-decoration: none; text-decoration: none;
} }
.bff-form .button:active { .bff-form button:active {
box-shadow: 0px 0px 10px #999; box-shadow: 0px 0px 10px #999;
text-decoration: none; text-decoration: none;
} }
.bff-form .button:visited { text-decoration: none; } .bff-form button:visited { text-decoration: none; }
#bff-feedback, #bff-feeds { #bff-feedback, #bff-feeds {
margin-top: 0.2em; margin-top: 0.2em;
padding: 6px 2px; padding: 6px 2px;
......
...@@ -151,7 +151,7 @@ class BFFForm extends BFFCourse { ...@@ -151,7 +151,7 @@ class BFFForm extends BFFCourse {
<form id="<?php echo BFF_ID; ?>" class="<?php echo BFF_CLASS; ?>" target="#"> <form id="<?php echo BFF_ID; ?>" class="<?php echo BFF_CLASS; ?>" target="#">
<label class="<?php echo BFF_CLASS; ?>"><?php echo __('Find your blog\'s feed address!'); ?></label><br/> <label class="<?php echo BFF_CLASS; ?>"><?php echo __('Find your blog\'s feed address!'); ?></label><br/>
<input data-role="none" id="bff-url" class="url" type="text" name="bff-url" value="" /> <input data-role="none" id="bff-url" class="url" type="text" name="bff-url" value="" />
<span id="bff-submit" class="submit button" href="#">Submit</span><br/> <button id="bff-submit" class="submit" href="#">Submit</button><br/>
<div id="bff-feedback" class="feedback"> <div id="bff-feedback" class="feedback">
<p>Feedback...</p> <p>Feedback...</p>
</div> </div>
......
...@@ -47,7 +47,7 @@ function compile_feeds(feeds, types, classes, authenticated) { ...@@ -47,7 +47,7 @@ function compile_feeds(feeds, types, classes, authenticated) {
msg += '<span class="bff-feed '+content_class+'" title="'+content_type+' Format"></span>'; msg += '<span class="bff-feed '+content_class+'" title="'+content_type+' Format"></span>';
if (authenticated) { if (authenticated) {
LOG('user is authenticated'); LOG('user is authenticated');
msg += ' <span id="bff-select-' + num + '" class="bff-select button">Select Feed</span>'; msg += ' <button id="bff-select-' + num + '" class="bff-select">Select Feed</button>';
} else { } else {
LOG('user is NOT authenticated'); LOG('user is NOT authenticated');
} }
...@@ -93,14 +93,14 @@ function compile_courses(courses, newfeed) { ...@@ -93,14 +93,14 @@ function compile_courses(courses, newfeed) {
msg += ' - blog feed already set to <a href="' + site.feed + '">'+newfeed+'</a>'; msg += ' - blog feed already set to <a href="' + site.feed + '">'+newfeed+'</a>';
} else { } else {
msg += ' - <span id="bff-original-'+ site.tag + '">existing blog feed: <a href="' + site.feed + '">' + site.feed + '</a></span>'; msg += ' - <span id="bff-original-'+ site.tag + '">existing blog feed: <a href="' + site.feed + '">' + site.feed + '</a></span>';
msg += ' <span id="bff-set-' + site.tag + '-' + site.id + msg += ' <button id="bff-set-' + site.tag + '-' + site.id +
'" class="bff-set button" hidden>Replace</span>'; '" class="bff-set">Replace</button>';
settable = true; settable = true;
} }
} else { } else {
msg += ' - <span id="bff-original-'+ site.tag + '">no url specified</span>'; msg += ' - <span id="bff-original-'+ site.tag + '">no url specified</span>';
msg += ' <span id="bff-set-' + site.tag + '-' + site.id + msg += ' <button id="bff-set-' + site.tag + '-' + site.id +
'" class="bff-set button" hidden>Assign</span>'; '" class="bff-set">Assign</button>';
settable = true; settable = true;
} }
msg += '</li>'; msg += '</li>';
...@@ -253,7 +253,7 @@ jQuery(document).ready(function() { ...@@ -253,7 +253,7 @@ jQuery(document).ready(function() {
function enable_courses(authenticated) { function enable_courses(authenticated) {
LOG('enabling courses...'); LOG('enabling courses...');
$('#bff-feed-list').html(selected_feed(feeds,feed_types,feed_classes)); $('#bff-feed-list').html(selected_feed(feeds,feed_types,feed_classes));
$('#bff-course-list').attr('hidden', false); $('#bff-course-list').removeAttr('hidden');
if (authenticated) { if (authenticated) {
LOG('user logged in.'); LOG('user logged in.');
$('#bff-course-list').html(compile_courses(courses, feeds[feeds.selected].url)); $('#bff-course-list').html(compile_courses(courses, feeds[feeds.selected].url));
...@@ -329,8 +329,8 @@ jQuery(document).ready(function() { ...@@ -329,8 +329,8 @@ jQuery(document).ready(function() {
courses = data.courses; courses = data.courses;
authenticated = data.authenticated; authenticated = data.authenticated;
// //
$('#bff-feed-list').attr('hidden', false); $('#bff-feed-list').removeAttr('hidden');
$('#bff-feeds').attr('hidden', false); $('#bff-feeds').removeAttr('hidden');
// if we've only got one feed, or if one's been selected... // if we've only got one feed, or if one's been selected...
if (feeds.length == 1) { if (feeds.length == 1) {
LOG('only one feed!'); LOG('only one feed!');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment