Commit 14b813e4 authored by Mathieu Giraud's avatar Mathieu Giraud

Merge branch 'feature-cs/prevent_double_clicking_links' into 'dev'

Feature cs/prevent double clicking links

See merge request !291
parents 554b5760 6cc94abc
Pipeline #40838 passed with stages
in 5 minutes and 57 seconds
......@@ -213,14 +213,22 @@ Database.prototype = {
* @param {object} args - parameters ({ "name_arg1" : "arg1", ... })
* */
call: function (page, args) {
var self = this;
try {
var event = window.event || arguments.callee.caller.arguments[0]
event.stopPropagation();
var target = event.target
if (target.getAttribute("disabled")){
return;
} else {
target.setAttribute("disabled", "disabled")
self.ajax_indicator_start();
setTimeout(function(){target.removeAttribute("disabled"); self.ajax_indicator_stop()}, 2000)
}
}
catch(err)
{}
var self = this;
var url = self.db_address + page
if (page.substr(0,4).toLowerCase() == "http") {
url = page
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment