- Timestamp:
- 2011-09-21 13:47:29 (8 months ago)
- Location:
- trunk/modules/kauri-forms/kauri-forms-framework/src
- Files:
-
- 2 edited
-
main/kauri/static-{build}.key/kauri.forms/basic-controls.js (modified) (4 diffs)
-
test/kauri.forms/test-basic-controls.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/kauri-forms/kauri-forms-framework/src/main/kauri/static-{build}.key/kauri.forms/basic-controls.js
r1952 r1954 261 261 262 262 SelectionControl.prototype.showRefresh = false; 263 SelectionControl.prototype.allowResize = true; 263 264 264 265 /** Specific control element initialisation */ … … 313 314 */ 314 315 SelectionControl.prototype.updateOptions = function( values, userValues, labels) { 316 315 317 values = values || []; 316 318 labels = labels || userValues; … … 322 324 var $select = this.getElement(); 323 325 $select.empty(); // or $select.html(""); 324 326 325 327 // loop options from type and construct the inner HTML 326 328 var last = userValues.length; … … 337 339 } 338 340 this.setValue(value, noValidation); 339 // on IE we need to trigger repaint by 340 $select.blur(); // calling blur 341 342 // on IE we need to trigger repaint by forcing width manipulation 343 // however this reset can be unwanted and therefore overridden through allowResize 344 if (this.allowResize) { 345 $select.css('width', 0); 346 $select.css('width', ''); 347 } 341 348 }; 342 349 -
trunk/modules/kauri-forms/kauri-forms-framework/src/test/kauri.forms/test-basic-controls.js
r1952 r1954 293 293 294 294 // #466 : check if rows and cols properties are set correctly 295 equal( $textarea.attr("cols"), cols,"check cols value");296 equal( $textarea.attr("rows"), rows,"check rows value");295 equal(Number($textarea.attr("cols")), cols,"check cols value"); 296 equal(Number($textarea.attr("rows")), rows,"check rows value"); 297 297 equal($textarea.attr("readonly"),"readonly","check readonly value") 298 298 … … 541 541 542 542 // 2. manually set options uri to options/main.js and call refresh 543 var needsWait = true; 543 544 var opts = c.options; 544 545 opts.uri = new $.org.kauriproject.UriTemplate("options/main.json", {skipEscape: true}); … … 552 553 $main.html("").hide(); 553 554 554 start(); 555 }); 556 555 QUnit.start(); 556 needsWait = false; 557 }); 558 557 559 opts.refresh(); 558 stop(); 560 561 if (needsWait) { // apparently the order of start/stop on IE is different. 562 QUnit.stop(); 563 } 559 564 560 565 });
Note: See TracChangeset
for help on using the changeset viewer.