| Line 28... |
Line 28... |
| 28 |
|
28 |
|
| 29 |
$('#dialog').dialog('open');
|
29 |
$('#dialog').dialog('open');
|
| 30 |
|
30 |
|
| 31 |
return false;
|
31 |
return false;
|
| 32 |
});
|
32 |
});
|
| - |
|
33 |
$('.clone').live('click', function() {
|
| - |
|
34 |
var entityid = $(this).attr('id');
|
| - |
|
35 |
$('#dialog-duplicate').dialog({
|
| - |
|
36 |
autoOpen: false,
|
| - |
|
37 |
width: 470,
|
| - |
|
38 |
height: 300,
|
| - |
|
39 |
modal: true,
|
| - |
|
40 |
title: 'Enter the entity id',
|
| - |
|
41 |
buttons: {
|
| - |
|
42 |
"OK":function() {
|
| - |
|
43 |
var entityOld = $('#dup-entity').val();
|
| - |
|
44 |
var patt=/^[0-9]{7}$/;
|
| - |
|
45 |
if(patt.test(entityOld)){
|
| - |
|
46 |
window.location.href = "/content/item-update/" + entityid +
|
| - |
|
47 |
"?_method=put&action=dup-entity&entity-old=" + entityOld;
|
| - |
|
48 |
}else {
|
| - |
|
49 |
alert("Please enter a valid entity id.")
|
| - |
|
50 |
}
|
| - |
|
51 |
},
|
| - |
|
52 |
"Cancel": function() { $(this).dialog("close"); }
|
| - |
|
53 |
}
|
| - |
|
54 |
});
|
| - |
|
55 |
|
| - |
|
56 |
$('#dialog-duplicate').dialog('open');
|
| - |
|
57 |
|
| - |
|
58 |
return false;
|
| - |
|
59 |
});
|
| 33 |
|
60 |
|
| 34 |
$('.complete').live('click', function() {
|
61 |
$('.complete').live('click', function() {
|
| 35 |
var entityid = $(this).attr('id');
|
62 |
var entityid = $(this).attr('id');
|
| 36 |
$('#dialog').dialog({
|
63 |
$('#dialog').dialog({
|
| 37 |
autoOpen: false,
|
64 |
autoOpen: false,
|
| Line 103... |
Line 130... |
| 103 |
table.push('<span style="padding:2px"><a href="/content/entity/' + entityId + '" target="_blank">View</a></span>');
|
130 |
table.push('<span style="padding:2px"><a href="/content/entity/' + entityId + '" target="_blank">View</a></span>');
|
| 104 |
table.push('<span style="border-left:1px solid black; padding:2px"><a href="" id="' + entityId + '" class="delete">Delete</a></span>');
|
131 |
table.push('<span style="border-left:1px solid black; padding:2px"><a href="" id="' + entityId + '" class="delete">Delete</a></span>');
|
| 105 |
table.push('<span style="border-left:1px solid black; padding:2px"><a href="" id="' + entityId + '" class="ready">Approve</a></span>');
|
132 |
table.push('<span style="border-left:1px solid black; padding:2px"><a href="" id="' + entityId + '" class="ready">Approve</a></span>');
|
| 106 |
table.push('<span style="border-left:1px solid black; padding:2px"><a href="" id="' + entityId + '" class="complete">Complete</a></span>');
|
133 |
table.push('<span style="border-left:1px solid black; padding:2px"><a href="" id="' + entityId + '" class="complete">Complete</a></span>');
|
| 107 |
table.push('<span style="border-left:1px solid black; padding:2px"><a href="" id="' + entityId + '" class="assign">Assign</a></span>');
|
134 |
table.push('<span style="border-left:1px solid black; padding:2px"><a href="" id="' + entityId + '" class="assign">Assign</a></span>');
|
| - |
|
135 |
table.push('<span style="border-left:1px solid black; padding:2px"><a href="" id="' + entityId + '" class="clone">Clone</a></span>');
|
| 108 |
return table.join("");
|
136 |
return table.join("");
|
| 109 |
}
|
137 |
}
|
| 110 |
|
138 |
|
| 111 |
$(document).ready(function()
|
139 |
$(document).ready(function()
|
| 112 |
{
|
140 |
{
|