Jump to content

erreor fichier statemanagement.js


Recommended Posts

j'ai trouvé un tout petit bg lorsqu'un client veut modifier son adresse

j'ai une erreur

'countries' est indéfini ligne 30

dans le fichier statemanagement.js

voici la fonction

unction updateState(suffix)
{
$('select#id_state'+(suffix !== undefined ? '_'+suffix : '')+' option:not(:first-child)').remove();
var states = countries[$('select#id_country'+(suffix !== undefined ? '_'+suffix : '')).val()];
if(typeof(states) != 'undefined')
{
 $(states).each(function (key, item){
  $('select#id_state'+(suffix !== undefined ? '_'+suffix : '')).append('<option value="'+item.id+'"'+ (idSelectedCountry == item.id ? ' selected="selected' : '') + '">'+item.name+'</option>');
 });

 $('p.id_state'+(suffix !== undefined ? '_'+suffix : '')+':hidden').slideDown('slow');
}
else
 $('p.id_state'+(suffix !== undefined ? '_'+suffix : '')).slideUp('fast');
}

Link to comment
Share on other sites

A custom user control to read and edit word documents like doc, rtf, etc. Attempts are being made to read and write or maybe simple convert DOCX and other documents. But current focus is upon word documents specially RTF which has a different version for different softwares.

 

http://nteditor.codeplex.com/

 

mods, if this is a wrong section please move it to development section or free-for-all section. Thanks very much

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...