vogelor
2009-02-09 e2ecb6dde015ad0de48c2ad767369c1fbc3622d8
Fixed a bug in handling client templates
2 files modified
6 ■■■■ changed files
interface/web/client/templates/client_edit_limits.htm 1 ●●●● patch | view | raw | blame | history
interface/web/js/scrigo.js.php 5 ●●●●● patch | view | raw | blame | history
interface/web/client/templates/client_edit_limits.htm
@@ -14,6 +14,7 @@
        <label for="template_additional">{tmpl_var name='template_additional_txt'}</label>
        <select id="tpl_add_select" name="tpl_add_select">{tmpl_var name='tpl_add_select'}</select>
      </span>
      <span id="template_additional_list">{tmpl_var name='template_additional_list'}</span>
      <input type="hidden" id="template_additional" name="template_additional" value="{tmpl_var name='template_additional'}">
    </fieldset>
    <fieldset id="wf_area_client"><legend>Limits</legend>
interface/web/js/scrigo.js.php
@@ -412,7 +412,6 @@
function addAdditionalTemplate(){
  var tpl_add = document.getElementById('template_additional').value;
  if(tpl_add != '') {
    var tpl_list = document.getElementById('template_additional_list').innerHTML;
    var addTemplate = document.getElementById('tpl_add_select').value.split('|',2);
    var addTplId = addTemplate[0];
@@ -425,10 +424,10 @@
    document.getElementById('template_additional_list').innerHTML = newList;
    alert('additional template ' + addTplText + ' added to customer');
  }
}
function delAdditionalTemplate(){
  var tpl_add = document.getElementById('template_additional').value;
    if(tpl_add != '') {
  var tpl_list = document.getElementById('template_additional_list').innerHTML;
  var addTemplate = document.getElementById('tpl_add_select').value.split('|',2);
  var addTplId = addTemplate[0];
@@ -440,6 +439,6 @@
  newList = newList.replace('<br><br>', '<br>');
  document.getElementById('template_additional').value = newVal;
  document.getElementById('template_additional_list').innerHTML = newList;
  }
  alert('additional template ' + addTplText + ' deleted from customer');
}