Changeset 811 in main
- Timestamp:
- 02/27/12 15:03:53 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/openPLM/templates/documents/files.html
r810 r811 12 12 autoOpen: false 13 13 }); 14 $(" span.check-out").click(function(e) {14 $("a.check-out").click(function(e) { 15 15 e.preventDefault(); 16 var id = $(this).attr('id');16 var url = $(this).attr("href"); 17 17 $("#dialog_check-out").dialog('option', 'buttons', { 18 18 … … 21 21 22 22 }, 23 "NEW REVISION AND CHECK-OUT": function() {24 $(this).dialog("close");25 }26 ,27 23 "CHECK-OUT": function() { 28 url = "./checkout/"+id+"/";29 24 $(location).attr('href',url); 30 25 $(this).dialog("close"); … … 97 92 {% if instance.checkout_valid %} 98 93 99 {% if instance.native_related %} 100 101 <a class="{{"Button"|button}}"> 102 <span id="{{instance.id}}" class="ui-button-text check-out">{% trans "CHECK-OUT" %}</span> 103 </a> 104 {% else %} 105 <a class="{{"Button"|button}}" href="./checkout/{{instance.id}}/"> 106 <span id="{{instance.id}}" class="ui-button-text">{% trans "CHECK-OUT" %}</span> 107 </a> 108 109 {% endif %} 94 <a class="{{"Button"|button}} 95 {% if instance.native_related %}check-out {% endif %}" 96 href="./checkout/{{instance.id}}/"> 97 <span id="{{instance.id}}" class="ui-button-text">{% trans "CHECK-OUT" %}</span> 98 </a> 110 99 111 100
Note: See TracChangeset
for help on using the changeset viewer.