Revision 41cad45d
b/ui/static/synnefo.js | ||
---|---|---|
15 | 15 |
pad(d.getUTCSeconds()) |
16 | 16 |
} |
17 | 17 |
|
18 |
// indexOf prototype for IE |
|
19 |
if (!Array.prototype.indexOf) { |
|
20 |
Array.prototype.indexOf = function(elt /*, from*/) { |
|
21 |
var len = this.length; |
|
22 |
var from = Number(arguments[1]) || 0; |
|
23 |
from = (from < 0) |
|
24 |
? Math.ceil(from) |
|
25 |
: Math.floor(from); |
|
26 |
if (from < 0) |
|
27 |
from += len; |
|
28 |
|
|
29 |
for (; from < len; from++) { |
|
30 |
if (from in this && |
|
31 |
this[from] === elt) |
|
32 |
return from; |
|
33 |
} |
|
34 |
return -1; |
|
35 |
}; |
|
36 |
} |
|
37 |
|
|
38 |
|
|
18 | 39 |
function update_confirmations(){ |
19 | 40 |
// hide all confirm boxes to begin with |
20 | 41 |
$('div.confirm_single').hide(); |
Also available in: Unified diff