Opened 8 years ago

Closed 8 years ago

#7889 closed bug (notabug)

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");

}

}

});

});

Change History (3)

comment:1 Changed 8 years ago by Scott González

Owner: set to 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.

comment:2 Changed 8 years ago by nanoquantumtechs

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);

});

comment:3 Changed 8 years ago by Scott González

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.