Skip to main content

Search and Top Navigation

#7889 closed bug (notabug)

Opened November 17, 2011 08:50AM UTC

Closed November 18, 2011 06:44AM UTC

selectall / Deselect All click event was not fired if i commect the dialog form it is working

Reported by: nanoquantumtechs Owned by: nanoquantumtechs
Priority: minor Milestone: 1.9.0
Component: ui.dialog Version: 1.8.16
Keywords: Cc:
Blocked by: Blocking:
Description

<div id="users-form" title="Users">

<input type="hidden" id="hdnIsEventUserChange" name="hdnIsEventUserChanged" value="false" />

<input id="selectall" type="checkbox" />

Select / Deselect All

<br />

<div id="Users">

//check box list

</div>

</div>

$(function () {

$('#users-form input:checkbox').click(function () { //do not change the name

$("#hdnIsEventUserChange").val(true);

});

$('#selectall:checkbox').click(function () {

$('#Users').find(':checkbox').attr('checked', this.checked);

});

$("#btnAddUser").click(function () {

$("#users-form").dialog("open");

});

$.fx.speeds._default = 1000;

$("#users-form").dialog({

autoOpen: false,

show: "blind",

hide: "explode",

height: 400,

width: 960,

modal: true,

buttons: {

Ok: function () {

var selectedId1 = [];

var count1 = 0;

$('#Users :checked').each(function () {

selectedId1.push($(this).attr('value'));

count1++;

});

if (count1 >= "1") {

$("#UserIds").val(selectedId1.join("|"));

}

$("#users-form").dialog("close");

}

}

});

});

Attachments (0)
Change History (3)

Changed November 17, 2011 12:46PM UTC by scottgonzalez comment:1

owner: → nanoquantumtechs
status: newpending

Please read the text in the red box and provide a usable test case. Copying your code as is does not work.

Changed November 18, 2011 06:23AM UTC by nanoquantumtechs comment:2

status: pendingnew

i had resolved the bug.

$('#selectall:checkbox').click(function () { not working

$(' #Users').find(':checkbox').attr('checked', this.checked);

});

$('#selectall:checkbox').click(function () { working

$('#users-form #Users').find(':checkbox').attr('checked', this.checked);

});

Changed November 18, 2011 06:44AM UTC by scottgonzalez comment:3

resolution: → invalid
status: newclosed