Repository navigation
Expand file tree
/
Copy pathroadui.init.js
More file actions
117 lines (102 loc) · 2.67 KB
/
Copy pathroadui.init.js
File metadata and controls
117 lines (102 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
;$(document).ready(function ()
{
var roadInit = new RoadUI.Init();
roadInit.calendar();
roadInit.file();
roadInit.member();
roadInit.dict();
roadInit.validate();
roadInit.select();
roadInit.table();
roadInit.tab1();
roadInit.selectIco();
roadInit.editor();
roadInit.text();
roadInit.textarea();
roadInit.button();
roadInit.textFocus();
});
;RoadUI.Init = function ()
{
this.validate = function ()
{
new RoadUI.Validate().bind($("[validate]"));
};
this.textFocus = function ()
{
var $txt = $('<input type="text" style="height:0; width:0;" />');
try
{
$("body").prepend($txt);
$txt.get(0).focus();
$txt.remove();
} catch (e) { }
};
this.text = function ()
{
new RoadUI.Text().init($(".mytext"));
};
this.textarea = function ()
{
new RoadUI.Textarea().init($(".mytextarea"));
};
this.editor = function ()
{
new RoadUI.Editor().init($(".myeditor"));
};
this.calendar = function ()
{
new RoadUI.Calendar().init($(".mycalendar"));
};
this.select = function ()
{
new RoadUI.Select().init($(".myselect"));
};
this.button = function ()
{
new RoadUI.Button().init($(".mybutton"));
};
this.file = function ()
{
new RoadUI.File().init($(".myfile"));
};
this.member = function ()
{
new RoadUI.Member().init($(".mymember"));
};
this.dict = function ()
{
new RoadUI.Dict().init($(".mydict"));
};
this.selectIco = function ()
{
$(".myico").each(function ()
{
new RoadUI.SelectIco({ obj: $(this) });
});
};
this.tab1 = function ()
{
$(".mytab").each(function ()
{
new RoadUI.Tab1({ obj: $(this) })
});
};
this.table = function ()
{
$(".listtable tbody tr").addClass("listtabletrout").bind("mouseover", function ()
{
$(this).children("td").removeClass().addClass("listtabletrover");
}).bind("mouseout", function ()
{
$(this).children("td").removeClass().addClass("listtabletrout");
});
$(".listtable1 tbody tr").addClass("listtable1trout").bind("mouseover", function ()
{
$(this).children("td").removeClass().addClass("listtable1trover");
}).bind("mouseout", function ()
{
$(this).children("td").removeClass().addClass("listtable1trout");
});
};
}