Chinese font fix

This commit is contained in:
2015-09-28 03:26:22 +08:00
parent 0f7896a925
commit ac7889e754
7 changed files with 30 additions and 16 deletions

View File

@@ -51,9 +51,11 @@
var deleteFlag = function (e)
{
var p = { flag: this.nodeValue, sflage: this.parentNode };
postData( flagConf.URICount, p, confirmDelete.bind( p ), serverFailed );
e.stopPropagation();
var p = { stage: this.parentNode };
p[ id ] = this.nodeValue;
p[ "id" ] = id;
postData( flagConf.URICount, p, confirmDelete.bind( p ), serverFailed );
};
var confirmDelete = function (obj)
@@ -64,7 +66,7 @@
Dand.wrapc("ae_blockswitch",
[
Dand.textNode( "Are you sure you want to delete " )
, Dand.wrap( "span", null, "flag_active", Dand.textNode( this.flag ) )
, Dand.wrap( "span", null, "flag_active", Dand.textNode( this[ id ] ) )
, Dand.textNode( " ?." )
]
)
@@ -79,7 +81,7 @@
: null
]
, "Delete", "No"
, doDelete.bind(this)
, doDelete.bind( this )
).show();
};
@@ -87,9 +89,10 @@
{
if ( confirmed )
{
this[ "del" ] = 1;
postData(
flagConf.URISet
, { flag: this.flag, del: 1 }
, this
, deleteSuccess.bind( this )
, serverFailed
);
@@ -99,9 +102,9 @@
var deleteSuccess = function(obj)
{
// Remove element
this.sflage.parentNode.removeChild(this.sflage);
this.stage.parentNode.removeChild( this.stage );
// Delete reference
delete flags[this.flag];
delete flags[ this[ id ] ];
};
var parseFlags = function ()