Fixed an erroneous "null" HTTP request and made a link to Poniverse.net open in a new tab.

This commit is contained in:
Peter Deltchev 2015-10-24 02:18:01 -07:00
parent dc7c2786a8
commit e55f6cc4fd
5 changed files with 12 additions and 10 deletions

View file

@ -6,7 +6,7 @@
</div> </div>
<div class="modal-body"> <div class="modal-body">
<p>Pony.fm was created to organize the <em>My Little Pony</em> community&#39;s fan music. <p>Pony.fm was created to organize the <em>My Little Pony</em> community&#39;s fan music.
The project is maintained by <a href="https://poniverse.net/">Poniverse</a>, an The project is maintained by <a href="https://poniverse.net/" target="_blank">Poniverse</a>, an
organization devoted to building and operating fan sites for the pony community.</p> organization devoted to building and operating fan sites for the pony community.</p>
<h2>Open-source credits</h2> <h2>Open-source credits</h2>

View file

@ -105,7 +105,6 @@ angular.module('ponyfm').controller "account-track", [
xhr.send formData xhr.send formData
tracks.getEdit($state.params.track_id).done (track) -> tracks.getEdit($state.params.track_id).done (track) ->
console.log (track.album_id);
$scope.edit = $scope.edit =
id: track.id id: track.id
title: track.title title: track.title

View file

@ -10,6 +10,9 @@ angular.module('ponyfm').directive 'pfmSrcLoader', () ->
image.removeAttr 'pfm-src-loader' image.removeAttr 'pfm-src-loader'
image.removeAttr 'pfm-src-size' image.removeAttr 'pfm-src-size'
# If the given value is null, don't bother trying to
# load something - it will result in an HTTP error.
if val
image[0].onload = -> image[0].onload = ->
element.attr 'src', val element.attr 'src', val
element.css {opacity: 0} element.css {opacity: 0}