Tizen 2.0 Release
[samples/web/ExercisePlanner.git] / js / ext.jqMobile.js
1 /*global $*/
2 // customize JQueryMobile controlgroup
3 $.fn.oldControlgroup = $.fn.controlgroup;
4 $.fn.controlgroup = function (options) {
5         "use strict";
6         return this.oldControlgroup(options).each(function () {
7                 this.deselectAll = function () {
8                         return $('input', this).attr('checked', false).checkboxradio('refresh');
9                 };
10
11                 this.select = function (value) {
12                         this.deselectAll();
13                         return $('input[value$="' + value + '"]', this).attr('checked', true).checkboxradio('refresh');
14                 };
15         });
16 };
17