mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-27 23:24:26 +00:00
use a more descriptive variable name
This commit is contained in:
parent
04ffaa588d
commit
504f23017d
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user