Skip to content

Commit

Permalink
fixed filth mode
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Aug 17, 2013
1 parent 814cb8f commit 1f6a939
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/scripts/data/pictures.js
Expand Up @@ -23,7 +23,7 @@ define([
created_at: now()
};

data && data.sfw ? request.exclude = "Nude" : request.only = "Nude", request.rpp = 47;
data.sfw ? request.exclude = "Nude" : request.only = "Nude", request.rpp = 47;

_500px.api( "/photos", request, function ( result ) {
var photos = result.data.photos;
Expand Down
7 changes: 4 additions & 3 deletions app/scripts/ui/pictures.js
Expand Up @@ -18,8 +18,7 @@ define([

this.getStarted = function ( event, data ) {
// filth mode
//sfw = data.swf;
sfw = true;
sfw = data.sfw;
}

this.picture = function ( event, data ) {
Expand All @@ -39,7 +38,9 @@ define([

if ( playing ) {
timeout = setTimeout(function () {
fly.trigger( document, "uiNeedsPicture", { sfw: sfw } );
fly.trigger( document, "uiNeedsPicture", {
sfw: sfw
});
}, delay);
}
}
Expand Down

0 comments on commit 1f6a939

Please sign in to comment.