[isidorus-cvs] r88 - trunk/src/ajax/javascripts
Lukas Giessmann
lgiessmann at common-lisp.net
Sat Jul 4 15:33:49 UTC 2009
Author: lgiessmann
Date: Sat Jul 4 11:33:48 2009
New Revision: 88
Log:
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
Modified:
trunk/src/ajax/javascripts/constants.js
trunk/src/ajax/javascripts/datamodel.js
Modified: trunk/src/ajax/javascripts/constants.js
==============================================================================
--- trunk/src/ajax/javascripts/constants.js (original)
+++ trunk/src/ajax/javascripts/constants.js Sat Jul 4 11:33:48 2009
@@ -11,7 +11,7 @@
// --- Some constants fot the http connections via the XMLHttpRequest-Object
-var HOST_PREF = "http://localhost:8000/"; // of the form "http://(.+)/"
+var HOST_PREF = "http://192.168.178.21:8000/"; //"http://localhost:8000/"; // of the form "http://(.+)/"
var GET_PREFIX = HOST_PREF + "json/get/";
var GET_STUB_PREFIX = HOST_PREF + "json/topicstubs/";
var TMCL_TYPE_URL = HOST_PREF + "json/tmcl/type/";
Modified: trunk/src/ajax/javascripts/datamodel.js
==============================================================================
--- trunk/src/ajax/javascripts/datamodel.js (original)
+++ trunk/src/ajax/javascripts/datamodel.js Sat Jul 4 11:33:48 2009
@@ -158,7 +158,9 @@
this.__content__ = new Element("select");
for(var i = 0; i != contents.length; ++i){
// --- the attribute value must be set for IE
- this.__content__.insert({"bottom" : new Element("option", {"value" : contents[i]}).update(contents[i])});
+ var opt = new Element("option", {"value" : contents[i]}).update(contents[i]);
+ this.__content__.insert({"bottom" : opt});
+ if(i === 0) opt.writeAttribute({"selected" : "selected"});
}
this.__remove__.insert({"after" : this.__content__});
More information about the Isidorus-cvs
mailing list