Skip to content

Commit

Permalink
[codeforamerica#18] Remove commented code, convert tabs to spaces for…
Browse files Browse the repository at this point in the history
… app/assets
  • Loading branch information
Philip Hale committed Sep 1, 2013
1 parent 74170d3 commit 84b7871
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 83 deletions.
66 changes: 13 additions & 53 deletions app/assets/javascripts/active_admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,58 +6,18 @@
//= require ./Markdown.Extra.js

$(document).ready(function(){
// Clicking Articles link on dashboard > open up context menu
$("a[href $= '/admin/articles']").attr("href","#");
$("a[href $= '#']").click(function(e){
$("a[href $= '#']").next().css({ "display": "block" });
});
// Clicking Articles link on dashboard > open up context menu
$("a[href $= '/admin/articles']").attr("href","#");
$("a[href $= '#']").click(function(e){
$("a[href $= '#']").next().css({ "display": "block" });
});

var arrows = $(".guidearrow");
if(arrows.length){
setInterval(function(){
for(var a=0;a<arrows.length;a++){
$(arrows[a]).css({ "display": "inline" });
}
}, 250);
}

/* if( $("#page_title").text() == "Dashboard"){
var headers = $("thead th");
for(var h=0;h<headers.length;h++){
if( $($("thead th")[h]).text() == "Author" ){
$($("thead th")[h]).text("Writer");
break;
}
}
}
if( $("#page_title").text() == "Quick Answers"){
var headers = $("thead th");
for(var h=0;h<headers.length;h++){
if( $($("thead th")[h]).text() == "Writer link" ){
$($("thead th")[h]).text("Write-a-thon Author Link");
break;
}
}
}
if( $("#page_title").text() == "Web Services"){
var headers = $("thead th");
for(var h=0;h<headers.length;h++){
if( $($("thead th")[h]).text() == "Writer link" ){
$($("thead th")[h]).text("Write-a-thon Author Link");
break;
}
}
}
if( $("#page_title").text() == "Guides"){
var headers = $("thead th");
for(var h=0;h<headers.length;h++){
if( $($("thead th")[h]).text() == "Writer link" ){
$($("thead th")[h]).text("Write-a-thon Author Link");
break;
}
}
} */
var arrows = $(".guidearrow");
if(arrows.length){
setInterval(function(){
for(var a=0;a<arrows.length;a++){
$(arrows[a]).css({ "display": "inline" });
}
}, 250);
}
});
60 changes: 30 additions & 30 deletions app/assets/stylesheets/active_admin_custom.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,38 +18,38 @@ td.status {
// Pagedown style

.wmd-panel {
padding: 0 10px 0 10px;
padding: 0 10px 0 10px;
}

.wmd-button-bar {
background-color: #F4F4F4;
background-color: #F4F4F4;
margin-top: 20px;
padding-left: 20%;
}

.wmd-input {
width: 39%;
float:left;
width: 39%;
float:left;
}

.wmd-button-row {
position: relative;
margin-left: 5px;
margin-right: 5px;
margin-bottom: 5px;
margin-top: 10px;
padding: 0px;
height: 20px;
position: relative;
margin-left: 5px;
margin-right: 5px;
margin-bottom: 5px;
margin-top: 10px;
padding: 0px;
height: 20px;
}

.wmd-spacer {
width: 1px;
height: 20px;
margin-left: 14px;
position: absolute;
background-color: Silver;
display: inline-block;
list-style: none;
width: 1px;
height: 20px;
margin-left: 14px;
position: absolute;
background-color: Silver;
display: inline-block;
list-style: none;
}

.wmd-button {
Expand Down Expand Up @@ -85,29 +85,29 @@ td.status {
}

.wmd-prompt-background {
background-color: Black;
background-color: Black;
}

.wmd-prompt-dialog {
border: 1px solid #999999;
background-color: #F5F5F5;
border: 1px solid #999999;
background-color: #F5F5F5;
}

.wmd-prompt-dialog > div {
font-size: 0.8em;
font-family: arial, helvetica, sans-serif;
font-size: 0.8em;
font-family: arial, helvetica, sans-serif;
}

.wmd-prompt-dialog > form > input[type="text"] {
border: 1px solid #999999;
color: black;
border: 1px solid #999999;
color: black;
}

.wmd-prompt-dialog > form > input[type="button"] {
border: 1px solid #888888;
font-family: trebuchet MS, helvetica, sans-serif;
font-size: 0.8em;
font-weight: bold;
border: 1px solid #888888;
font-family: trebuchet MS, helvetica, sans-serif;
font-size: 0.8em;
font-weight: bold;
}

// Format Preview Section to Match Live View
Expand Down Expand Up @@ -188,4 +188,4 @@ table.dashboard > tbody > tr > td {

.author_image {
padding: 0 10px 0 20%;
}
}

0 comments on commit 84b7871

Please sign in to comment.