Custom Query (18300 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (28 - 30 of 18300)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Ticket Resolution Summary Owner Reporter
#505 fixed I can't undo change when the newValue is not correct.(dojo.widget.InlineEditBox) tk [email protected]
Description

when i use dojo.widget.InlineEditBox?,I want undo change in onSave() when the "newValue" is not correct. but i can't.

saveEdit: function(e){
    e.preventDefault();
    e.stopPropagation();
    var ee = this[this.mode.toLowerCase()];
    if((this.textValue != ee.value)&&
	(dojo.string.trim(ee.value) != "")){
	this.doFade = true;
	this.history.push(this.textValue);
	this.onSave(ee.value, this.textValue);
        //invoke undo() in onSave() can't do anything!!!
	this.textValue = ee.value;
	this.editable.innerHTML = this.textValue;
    }else{
	this.doFade = false;
    }
    this.finishEdit(e);
}

maybe it should be like this:

var oldValue = this.textValue;
var newValue = ee.value;			
this.textValue = newValue;
this.editable.innerHTML = newValue;
this.onSave(newValue, oldValue);
//invoke undo() in onSave() can make editable.innerHTML be the oldValue
#7156 fixed dojox.image.gallery IE6 stack overflow Shane O'Sullivan ziy
Description

This has been occuring on my site and it also happens on:

http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/image/tests/test_Gallery.html

On first load everything displays correctly, but when you nagivate back to the page you get stack overlow line 0. IE6 somtimes also reports a script is running slowly.

I don't get the error on refesh, only when going to the address bar and hitting enter. So when someone is navigating around a site it does show up if they revisit a page.

#2416 invalid dojo.widget.Form.getValues() ignore fields with names contains "[" Nathan Toone [email protected]
Description

when using form elements in this form (array of the same input element):

<input type="text" name="field[0]" id="field[0]" />
<input type="text" name="field[1]" id="field[1]" />
<input type="text" name="field[2]" id="field[2]" />
...

the dojo.widget.Form.getValues() function ignore those form elements.

my patch to fix that problem:

--- Form.js            2007-01-10 15:53:52.000000000 +0200
+++ FormPatched.js     2007-02-06 13:51:41.000000000 +0200
@@ -287,10 +287,12 @@

                                if ((elm.type != "select-multiple" && elm.type != "checkbox" && elm.type != "radio") || (elm.type=="radio" && elm.checked)) {
                                        if(name == name.split("[")[0]) {
-                                               myObj[name]=elm.value;
-                                       } else {
-                                               // can not set value when there is no name
-                                       }
+                                                       myObj[name]=elm.value;
+                                               } else if (name != 'undefined' && name != '') {
+                                                       myObj[name] = elm.value;
+                                               } else {
+                                                       // can not set value when there is no name
+                                               }
                                } else if (elm.type == "checkbox" && elm.checked) {
                                        if(typeof(myObj[name]) == 'undefined') {
                                                myObj[name]=[ ];
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Note: See TracQuery for help on using queries.