Changeset 124719 in spip-zone


Ignore:
Timestamp:
May 17, 2020, 6:34:58 PM (3 weeks ago)
Author:
Maïeul Rouquette
Message:

Mesure de performance sur le déplacement de colonne.

Location:
_plugins_/formidable_tablesorter/branches/dev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/formidable_tablesorter/branches/dev

    • Property subgit:lock:233d272617faa5a57b379ecd23f4307f249c46c2 deleted
    • Property subgit:lock:fc49bade2df3a6af4e5f833ad3c0c4861b0cadba set to 2020-05-17T20:41:05.530
  • _plugins_/formidable_tablesorter/branches/dev/javascript/formidable_tablesorter.js

    r124718 r124719  
    177177        }
    178178}
    179 
     179reorder = 0
    180180// Ajout des flèches au chargement
    181181function formidable_ts_add_reorder_arrows() {
     
    198198        }
    199199        $('.move-arrows a').click(function() {
     200                reorder++;
     201                console.log('start reorder ' + reorder)
     202                var v1 = performance.now();
    200203                th = $(this).parent().parent();
    201204                tr = th.parent();
     
    224227                        });
    225228                }
     229                var v2 = performance.now();
     230                console.log("reorder time  taken = "+(v2-v1)+"milliseconds");
     231                console.log('start post reorder ' + reorder)
    226232                formidable_ts_post_reorder();
    227         });
    228 }
     233                var v3 = performance.now();
     234                console.log('end reorder ' + reorder)
     235                console.log("post reorder time  taken = "+(v3-v2)+"milliseconds");
     236                console.log("total time  taken = "+(v3-v1)+"milliseconds");
     237        });
     238}
Note: See TracChangeset for help on using the changeset viewer.