Ignore:
Timestamp:
Oct 26, 2009, 2:13:11 AM (15 years ago)
Author:
LucMorizur
Message:

[Event Cats] JS bugs removed.

Location:
extensions/event_cats/admin/template
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/admin/template/autolog_new.js

    r4115 r4116  
    3131var ec_duplic_codes             = new Array();
    3232var ec_lists                    = new Array();
     33    ec_lists['code']            = new Array();
    3334    ec_lists['user_id']         = new Array();
    3435    ec_lists['action']          = new Array();
     
    136137          ec_selected_user                  = 'ec_sel_user_old';
    137138          ec_selected_old_user              =
    138            d.ec_new_code.ec_in_up_code_list.options[
    139             d.ec_new_code.ec_in_up_code_list.selectedIndex
    140            ].label;
    141           ec_flag1 = ec_flag2;
     139           ec_lists['user_id'][ec_selected_old_code];
     140          ec_flag1 = true;
    142141          ec_mark_user('ec_sel_user_old');
    143142          ec_flag1 = false;
  • extensions/event_cats/admin/template/autolog_new.tpl

    r4115 r4116  
    108108              {'ec_up_code_lbl_code_old'|@translate}
    109109            </label>
    110             <select name = "ec_in_up_code_list" id = "ec_in_up_code_list_id"
    111              onchange = "ec_change_code_list(this.value);" {$ec_hidden_when_no_code}
    112             >
     110            <select name = "ec_in_up_code_list" id = "ec_in_up_code_list_id" onchange = "ec_change_code_list(this.value);" {$ec_hidden_when_no_code} >
    113111              {foreach from=$ec_lists.duplicable_codes.codes key=ec_key item=ec_val}
    114                 <option label = "{$ec_val.user_id}" value = "{$ec_val.id}">{$ec_key}</option>
     112                <option value = "{$ec_val.id}">{$ec_key}</option>
    115113              {/foreach}
    116114            </select><br>
     
    280278      ec_duplic_codes[{$ec_key}] = {$ec_val};
    281279    {/foreach}
    282   {else}
    283     {foreach from=$ec_lists.ec_table item=ec_val}
    284       ec_lists['user_id']['{$ec_val.id}'] = "{$ec_val.user_id}";
    285       ec_lists['action']['{$ec_val.id}']  = "{$ec_val.action}";
    286       ec_lists['arg1']['{$ec_val.id}']    = "{$ec_val.arg1}";
    287       ec_lists['arg2']['{$ec_val.id}']    = "{$ec_val.arg2}";
    288       ec_lists['forced']['{$ec_val.id}']  = "{$ec_val.forced}";
    289     {/foreach}
    290280  {/if}
     281  {foreach from=$ec_lists.ec_table item=ec_val}
     282    ec_lists['user_id']['{$ec_val.id}'] = "{$ec_val.user_id}";
     283    ec_lists['action']['{$ec_val.id}']  = "{$ec_val.action}";
     284    ec_lists['arg1']['{$ec_val.id}']    = "{$ec_val.arg1}";
     285    ec_lists['arg2']['{$ec_val.id}']    = "{$ec_val.arg2}";
     286    ec_lists['forced']['{$ec_val.id}']  = "{$ec_val.forced}";
     287  {/foreach}
    291288  ec_init();
    292289//--></script>
Note: See TracChangeset for help on using the changeset viewer.