use a more descriptive variable name

This commit is contained in:
Miguel Freitas 2014-12-06 10:39:30 -02:00
parent 04ffaa588d
commit 504f23017d

View File

@ -732,17 +732,17 @@ function followingListPublicCheckbox(e) {
var $this = $(this); var $this = $(this);
var username = $this.closest(".mini-profile-info").attr("data-screen-name"); var username = $this.closest(".mini-profile-info").attr("data-screen-name");
var method = false; var publicFollow = false;
$this.toggleClass( "private" ); $this.toggleClass( "private" );
if( $this.hasClass( "private" ) ) { if( $this.hasClass( "private" ) ) {
$this.text( polyglot.t("Private") ); $this.text( polyglot.t("Private") );
} else { } else {
$this.text( polyglot.t("Public") ); $this.text( polyglot.t("Public") );
method = true; publicFollow = true;
} }
//console.log("set following method of @" +username +" for "+method); //console.log("set following method of @" +username +" for "+publicFollow);
follow(username, method); follow(username, publicFollow);
} }
function setFollowingMethod(e) { function setFollowingMethod(e) {
@ -750,14 +750,14 @@ function setFollowingMethod(e) {
var $this = $(this); var $this = $(this);
var username = $this.closest(".following-config-modal-content").attr("data-screen-name"); var username = $this.closest(".following-config-modal-content").attr("data-screen-name");
var method = false; var publicFollow = false;
if( !$this.hasClass("private") ) { if( !$this.hasClass("private") ) {
method = true; publicFollow = true;
} }
//console.log("start following @" +username +" by method "+method); //console.log("start following @" +username +" by method "+publicFollow);
follow(username, method); follow(username, publicFollow);
} }