4
4
<script src="/{{=request.application}}/static/scripts/S3/jquery.dataTables.min.js" type="text/javascript" charset="utf-8"></script>
6
6
<script type="text/javascript">//<![CDATA[
8
// http://www.webtoolkit.info
9
// @ToDo: Move to S3.min.js
10
encode : function (string) {
11
string = string.replace(/\r\n/g, '\n');
13
for (var n = 0; n < string.length; n++) {
14
var c = string.charCodeAt(n);
16
utftext += String.fromCharCode(c);
18
else if((c > 127) && (c < 2048)) {
19
utftext += String.fromCharCode((c >> 6) | 192);
20
utftext += String.fromCharCode((c & 63) | 128);
23
utftext += String.fromCharCode((c >> 12) | 224);
24
utftext += String.fromCharCode(((c >> 6) & 63) | 128);
25
utftext += String.fromCharCode((c & 63) | 128);
30
decode : function (utftext) {
34
while ( i < utftext.length ) {
35
c = utftext.charCodeAt(i);
37
string += String.fromCharCode(c);
40
else if((c > 191) && (c < 224)) {
41
c2 = utftext.charCodeAt(i+1);
42
string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
46
c2 = utftext.charCodeAt(i+1);
47
c3 = utftext.charCodeAt(i+2);
48
string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
7
55
$(document).ready(function() {
8
56
// Create an array for the column settings (this is required, otherwise the column widths don't autosize)
9
57
var myList = document.getElementById('list');
148
196
id = re.exec(aData[0])[1];
149
197
c = Actions[i]._class
150
198
re = /%5Bid%5D/g;
151
Buttons = Buttons + '<a class="'+ c +'" href="' + Actions[i].url.replace(re, id) + '">' + Actions[i].label + '</a>' + ' ';
199
Buttons = Buttons + '<a class="'+ c +'" href="' + Actions[i].url.replace(re, id) + '">' + Utf8.decode(Actions[i].label) + '</a>' + ' ';
153
201
// Set the first column to the action buttons
154
202
$('td:eq(0)', nRow).html( Buttons );