]> CyberLeo.Net >> Repos - Github/YOURLS.git/commit
Added `decrease_total_clicks( id )` + call
authorBestNa.me Labs <info@bestna.me>
Thu, 10 Mar 2016 20:58:58 +0000 (21:58 +0100)
committerBestNa.me Labs <info@bestna.me>
Thu, 10 Mar 2016 20:58:58 +0000 (21:58 +0100)
commit323b32734a70306ddd4b1a508f37066257e86fcd
treeac118a02d5352a8b8bd52df5ffcf21db3c1ac505
parent04d81c1996fc1e8e0daaa034ab5a6592f83d5208
Added `decrease_total_clicks( id )` + call

Added a function `decrease_total_clicks( id )` in js/insert.js which decreases the element containing the number of total clicks on the admin page by the value contained in the element `$('#clicks-' + id)` (i.e. by the value picked from the 'Clicks' column of the respective deleted row). Now called this method at the appropriate place in function `remove_link(id)`, thereby passing on `id` as parameter.
js/insert.js