Ignore:
Timestamp:
07/04/09 15:33:48 (16 years ago)
Author:
lgiessmann
Message:

ajax-client: fixed a bug under safari with the class "SelectrowC" where the default-selected-element wasn't selected. currently there will be additionally set the option selected="selected" to solve this problem

Location:
trunk/src/ajax/javascripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/ajax/javascripts/constants.js

    r86 r88  
    1212
    1313// --- Some constants fot the http connections via the XMLHttpRequest-Object
    14 var HOST_PREF = "http://localhost:8000/"; // of the form "http://(.+)/"
     14var HOST_PREF = "http://192.168.178.21:8000/"; //"http://localhost:8000/"; // of the form "http://(.+)/"
    1515var GET_PREFIX = HOST_PREF + "json/get/";
    1616var GET_STUB_PREFIX = HOST_PREF + "json/topicstubs/";
  • TabularUnified trunk/src/ajax/javascripts/datamodel.js

    r86 r88  
    159159                                           for(var i = 0; i != contents.length; ++i){
    160160                                               // --- the attribute value must be set for IE
    161                                                this.__content__.insert({"bottom" : new Element("option", {"value" : contents[i]}).update(contents[i])});
     161                                               var opt = new Element("option", {"value" : contents[i]}).update(contents[i]);
     162                                               this.__content__.insert({"bottom" : opt});
     163                                               if(i === 0) opt.writeAttribute({"selected" : "selected"});
    162164                                           }
    163165                                           this.__remove__.insert({"after" : this.__content__});
Note: See TracChangeset for help on using the changeset viewer.