Lines 138-145
$(document).ready(function() {
Link Here
|
138 |
} |
138 |
} |
139 |
return true; |
139 |
return true; |
140 |
} |
140 |
} |
141 |
function insertValueQuery(mtt_id) { |
141 |
function insertValueQuery(containerid) { |
142 |
var fieldset = $("#" + mtt_id); |
142 |
var fieldset = $("#" + containerid); |
143 |
var myQuery = $(fieldset).find('textarea[name="content"]'); |
143 |
var myQuery = $(fieldset).find('textarea[name="content"]'); |
144 |
var myListBox = $(fieldset).find('select[name="SQLfieldname"]'); |
144 |
var myListBox = $(fieldset).find('select[name="SQLfieldname"]'); |
145 |
|
145 |
|
Lines 415-427
$(document).ready(function() {
Link Here
|
415 |
[% END %] |
415 |
[% END %] |
416 |
</h3> |
416 |
</h3> |
417 |
[% IF letter.message_transport_type == "sms" and not Koha.Preference("SMSSendDriver") %] |
417 |
[% IF letter.message_transport_type == "sms" and not Koha.Preference("SMSSendDriver") %] |
418 |
<fieldset class="rows mtt" id="[% letter.message_transport_type %]" disabled="disabled"> |
418 |
<fieldset class="rows mtt" id="[% letter.message_transport_type %]_[% lang %]" disabled="disabled"> |
419 |
<div class="dialog message">You should enable the SMSSendDriver preference to use the SMS templates.</div> |
419 |
<div class="dialog message">You should enable the SMSSendDriver preference to use the SMS templates.</div> |
420 |
[% ELSIF letter.message_transport_type == "phone" and not Koha.Preference("TalkingTechItivaPhoneNotification") %] |
420 |
[% ELSIF letter.message_transport_type == "phone" and not Koha.Preference("TalkingTechItivaPhoneNotification") %] |
421 |
<fieldset class="rows mtt" id="[% letter.message_transport_type %]" disabled="disabled"> |
421 |
<fieldset class="rows mtt" id="[% letter.message_transport_type %]_[% lang %]" disabled="disabled"> |
422 |
<div class="dialog message">You should enable the TalkingTechItivaPhoneNotification preference to use the phone templates.</div> |
422 |
<div class="dialog message">You should enable the TalkingTechItivaPhoneNotification preference to use the phone templates.</div> |
423 |
[% ELSE %] |
423 |
[% ELSE %] |
424 |
<fieldset class="rows mtt" id="[% letter.message_transport_type %]"> |
424 |
<fieldset class="rows mtt" id="[% letter.message_transport_type %]_[% lang %]"> |
425 |
[% END %] |
425 |
[% END %] |
426 |
<ol> |
426 |
<ol> |
427 |
<li> |
427 |
<li> |
Lines 452-458
$(document).ready(function() {
Link Here
|
452 |
</select> |
452 |
</select> |
453 |
</td> |
453 |
</td> |
454 |
<td class="actions"> |
454 |
<td class="actions"> |
455 |
<button type="button" data-containerid="[% letter.message_transport_type %]" class="btn btn-default btn-sm insert">Insert <i class="fa fa-long-arrow-right"></i></button> |
455 |
<button type="button" data-containerid="[% letter.message_transport_type %]_[% lang %]" class="btn btn-default btn-sm insert">Insert <i class="fa fa-long-arrow-right"></i></button> |
456 |
</td> |
456 |
</td> |
457 |
<td><textarea name="content" id="content_[% letter.message_transport_type %]" cols="80" rows="15">[% letter.content %]</textarea></td> |
457 |
<td><textarea name="content" id="content_[% letter.message_transport_type %]" cols="80" rows="15">[% letter.content %]</textarea></td> |
458 |
</tr> |
458 |
</tr> |
459 |
- |
|
|