Skip to content

Commit

Permalink
JS made a little smarter
Browse files Browse the repository at this point in the history
  • Loading branch information
kkellydesign committed Feb 10, 2015
1 parent 1cb2f06 commit 74f21d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ $(document).ready(function(){
url: this.href,
success: function(data, text){
$par.html(data);
$('.file-upload a').not("[href*='.pdf']").each(function(){
$('.file-upload a').not("[href*='.pdf'], [href*='.doc'], [href*='.mp3']").each(function(){
var thumbURL = $(this).attr('href');
if (thumbURL){
$(this).prepend('<img src="' + thumbURL + '" style="max-width:180px;max-height:100px;margin-bottom:10px;display:block;">');
}
});
// hide galleries, because they make the form crazy long
$('#images-group').before("<a href='#' id='gallery_dropdown'>Edit the gallery for this page <span>›</span></a>");
$('#images-group').before("<a href='#' id='gallery_dropdown'>Edit the image gallery for this page <span>›</span></a>");
$('#images-group').hide();

function labelTables(){
Expand Down
2 changes: 1 addition & 1 deletion servee/frontendadmin/static/servee/js/frontendadmin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 74f21d6

Please sign in to comment.