Ignore:
Timestamp:
Nov 20, 2009, 10:56:32 PM (14 years ago)
Author:
LucMorizur
Message:

[Event Cats] Finish duplication management, configuration management, code cleaning

File:
1 edited

Legend:

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

    r4263 r4329  
    11/* Event Cats Javascript functions LucMorizur June - ... 2009 */
    22
     3// All variables declarations
     4// Once this entire file has been read, some JS code is executed at the end
     5// of .tpl file, thus some values below are modified during the HTML page
     6// "reading and displaying"
    37var ec_avoid_infinite_loop      = true;
    48var ec_is_creation              = true;
     
    446450            d.ec_new_code.ec_in_up_cat.selectedIndex
    447451           ].label;
    448           /* if (cat_display) ec_new_user_text =
    449            (ec_reg_cat2.test(ec_cat_sel)) ?
    450             ec_reg_cat1.exec(ec_cat_sel)[1] : ec_cat_sel;
    451           else */ ec_new_user_text = ec_reg_cat3.exec(ec_cat_sel)[1];
     452          ec_new_user_text = ec_reg_cat3.exec(ec_cat_sel)[1];
    452453          ec_new_user_text = ec_new_user_text.replace(/\s/g, '_');
    453454          ec_new_user_text = ec_new_user_text.substr(0, 50);
     
    464465            return false;
    465466          }
    466           t2 = ec_JS_message['ec_up_code_lbl_home'];
     467          t2 = ec_JS_message['Home'];
    467468          ec_new_user_text = t2 + '_' + t1;
    468469        break;
Note: See TracChangeset for help on using the changeset viewer.