This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | jQuery(document).ready(function($) { |
||
2 | /** |
||
3 | * Globals |
||
4 | */ |
||
5 | $smallWidth = 300; |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
6 | $bigWidth = 800; |
||
0 ignored issues
–
show
|
|||
7 | |||
8 | /** |
||
9 | * Update Button |
||
10 | */ |
||
11 | function updateButtonText ($newText){ |
||
12 | $('#pods-parts-submit').val($newText); |
||
13 | } |
||
14 | |||
15 | /** |
||
16 | * Dialog Box Population |
||
17 | */ |
||
18 | function populateEditPages() { |
||
19 | $newHTML = '<div id="pods-parts-search"><label for="pods-parts-search-box">Search:</label><input id="pods-parts-search-box" name="pods-parts-search-box" type="text" /><input id="pods-parts-search-box-submit" name="pods-parts-search-box-submit" class="button-secondary" value="Search Pages" /></div>'; |
||
0 ignored issues
–
show
|
|||
20 | $newHTML+= '<div class="clear"></div>'; |
||
0 ignored issues
–
show
|
|||
21 | $newHTML+= '<div class="tablenav top lightgraybackground">'; |
||
0 ignored issues
–
show
|
|||
22 | $newHTML+= '<div id="pods-parts-display-per-page" class="left">'; |
||
0 ignored issues
–
show
|
|||
23 | $newHTML+= '<label for="pods-parts-display-per-page-select">Display Per Page:</label>'; |
||
0 ignored issues
–
show
|
|||
24 | $newHTML+= '<select id="pods-parts-display-per-page-select" name="pods-parts-display-per-page-select">'; |
||
0 ignored issues
–
show
|
|||
25 | $newHTML+= '<option value="40">40</option>'; |
||
0 ignored issues
–
show
|
|||
26 | $newHTML+= '<option value="20">20</option>'; |
||
0 ignored issues
–
show
|
|||
27 | $newHTML+= '<option value="10">10</option>'; |
||
0 ignored issues
–
show
|
|||
28 | $newHTML+= '</select>'; |
||
0 ignored issues
–
show
|
|||
29 | $newHTML+= '</div>'; |
||
0 ignored issues
–
show
|
|||
30 | $newHTML+= '<div class="pods-parts-pagination">'; |
||
0 ignored issues
–
show
|
|||
31 | $newHTML+= '<div class="tablenav-pages">'; |
||
0 ignored issues
–
show
|
|||
32 | $newHTML+= '<span class="pagination-links">'; |
||
0 ignored issues
–
show
|
|||
33 | $newHTML+= '<a class="first-page disabled" href="#" title="Go to the first page">«</a>'; |
||
0 ignored issues
–
show
|
|||
34 | $newHTML+= '<a class="prev-page disabled" href="#" title="Go to the previous page">‹</a>'; |
||
0 ignored issues
–
show
|
|||
35 | $newHTML+= '<span class="paging-input">'; |
||
0 ignored issues
–
show
|
|||
36 | $newHTML+= '<input class="current-page" type="text" size="2" value="1" name="paged" title="Current page" />'; |
||
0 ignored issues
–
show
|
|||
37 | $newHTML+= ' of '; |
||
0 ignored issues
–
show
|
|||
38 | $newHTML+= '<span class="total-pages">10 </span>'; |
||
0 ignored issues
–
show
|
|||
39 | $newHTML+= '</span>'; |
||
0 ignored issues
–
show
|
|||
40 | $newHTML+= '<a class="next-page" href="#" title="Go to the next page">›</a>'; |
||
0 ignored issues
–
show
|
|||
41 | $newHTML+= '<a class="last-page" href="#" title="Go to the last page">»</a>'; |
||
0 ignored issues
–
show
|
|||
42 | $newHTML+= '</span>'; |
||
0 ignored issues
–
show
|
|||
43 | $newHTML+= '</div>'; |
||
0 ignored issues
–
show
|
|||
44 | $newHTML+= '</div>'; |
||
0 ignored issues
–
show
|
|||
45 | $newHTML+= '</div>'; |
||
0 ignored issues
–
show
|
|||
46 | $newHTML+= '<table style="width: 100%">'; |
||
0 ignored issues
–
show
|
|||
47 | $newHTML+= '<tr>'; |
||
0 ignored issues
–
show
|
|||
48 | $newHTML+= '<td>'; |
||
0 ignored issues
–
show
|
|||
49 | $newHTML+= '<div class="bluehighlight">'; |
||
0 ignored issues
–
show
|
|||
50 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
0 ignored issues
–
show
|
|||
51 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
0 ignored issues
–
show
|
|||
52 | $newHTML+= '</div>'; |
||
0 ignored issues
–
show
|
|||
53 | $newHTML+= '</td>'; |
||
0 ignored issues
–
show
|
|||
54 | $newHTML+= '<td>'; |
||
0 ignored issues
–
show
|
|||
55 | $newHTML+= '<div class="bluehighlight">'; |
||
0 ignored issues
–
show
|
|||
56 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
0 ignored issues
–
show
|
|||
57 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
0 ignored issues
–
show
|
|||
58 | $newHTML+= '</div>'; |
||
0 ignored issues
–
show
|
|||
59 | $newHTML+= '</td>'; |
||
0 ignored issues
–
show
There were too many errors found in this file; checking aborted after 11%.
If JSHint finds too many errors in a file, it aborts checking altogether because it suspects a configuration issue. Further Reading: ![]() |
|||
60 | $newHTML+= '<td>'; |
||
61 | $newHTML+= '<div class="bluehighlight">'; |
||
62 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
63 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
64 | $newHTML+= '</div>'; |
||
65 | $newHTML+= '</td>'; |
||
66 | $newHTML+= '<td>'; |
||
67 | $newHTML+= '<div class="bluehighlight">'; |
||
68 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
69 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
70 | $newHTML+= '</div>'; |
||
71 | $newHTML+= '</td>'; |
||
72 | $newHTML+= '</tr>'; |
||
73 | $newHTML+= '<tr>'; |
||
74 | $newHTML+= '<td>'; |
||
75 | $newHTML+= '<div class="bluehighlight">'; |
||
76 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
77 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
78 | $newHTML+= '</div>'; |
||
79 | $newHTML+= '</td>'; |
||
80 | $newHTML+= '<td>'; |
||
81 | $newHTML+= '<div class="bluehighlight">'; |
||
82 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
83 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
84 | $newHTML+= '</div>'; |
||
85 | $newHTML+= '</td>'; |
||
86 | $newHTML+= '<td>'; |
||
87 | $newHTML+= '<div class="bluehighlight">'; |
||
88 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
89 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
90 | $newHTML+= '</div>'; |
||
91 | $newHTML+= '</td>'; |
||
92 | $newHTML+= '<td>'; |
||
93 | $newHTML+= '<div class="bluehighlight">'; |
||
94 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
95 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
96 | $newHTML+= '</div>'; |
||
97 | $newHTML+= '</td>'; |
||
98 | $newHTML+= '</tr>'; |
||
99 | $newHTML+= '</table>'; |
||
100 | $newHTML+= '<div class="tablenav top lightgraybackground">'; |
||
101 | $newHTML+= '<div id="pods-parts-display-per-page" class="left">'; |
||
102 | $newHTML+= '<label for="pods-parts-display-per-page-select">Display Per Page</label>'; |
||
103 | $newHTML+= '<select id="pods-parts-display-per-page-select" name="pods-parts-display-per-page-select">'; |
||
104 | $newHTML+= '<option value="40">40</option>'; |
||
105 | $newHTML+= '<option value="20">20</option>'; |
||
106 | $newHTML+= '<option value="10">10</option>'; |
||
107 | $newHTML+= '</select>'; |
||
108 | $newHTML+= '</div>'; |
||
109 | $newHTML+= '<div class="pods-parts-pagination">'; |
||
110 | $newHTML+= '<div class="tablenav-pages">'; |
||
111 | $newHTML+= '<span class="pagination-links">'; |
||
112 | $newHTML+= '<a class="first-page disabled" href="#" title="Go to the first page">«</a>'; |
||
113 | $newHTML+= '<a class="prev-page disabled" href="#" title="Go to the previous page">‹</a>'; |
||
114 | $newHTML+= '<span class="paging-input">'; |
||
115 | $newHTML+= '<input class="current-page" type="text" size="2" value="1" name="paged" title="Current page" />'; |
||
116 | $newHTML+= ' of '; |
||
117 | $newHTML+= '<span class="total-pages">10 </span>'; |
||
118 | $newHTML+= '</span>'; |
||
119 | $newHTML+= '<a class="next-page" href="#" title="Go to the next page">›</a>'; |
||
120 | $newHTML+= '<a class="last-page" href="#" title="Go to the last page">»</a>'; |
||
121 | $newHTML+= '</span>'; |
||
122 | $newHTML+= '</div>'; |
||
123 | $newHTML+= '</div>'; |
||
124 | $newHTML+= '</div>'; |
||
125 | $('#pods-parts-popup').html($newHTML); |
||
126 | updateButtonText('Update Pods Page'); |
||
127 | } |
||
128 | |||
129 | function populateAddPage() { |
||
130 | $newHTML = '<p>Create a new Pods Page by entering the name in the text field.</p>'; |
||
131 | $newHTML+= '<label for="pods-parts-dialog-page-new">Name:</label><input id="pods-parts-dialog-page-new" name="pods-parts-dialog-page-new" type="text" />'; |
||
132 | $newHTML+= '<input class="submitnew button-primary" type="" value="Add New Pods Page" />'; |
||
133 | $newHTML+= '<input type="hidden" value="newpodspage" />'; |
||
134 | |||
135 | $('#pods-parts-popup').html($newHTML); |
||
136 | updateButtonText('Save New Pods Page'); |
||
137 | } |
||
138 | |||
139 | function populateEditTemplates() { |
||
140 | $newHTML = '<div id="pods-parts-search"><label for="pods-parts-search-box">Search:</label><input id="pods-parts-search-box" name="pods-parts-search-box" type="text" /><input id="pods-parts-search-box-submit" name="pods-parts-search-box-submit" class="button-secondary" value="Search Templates" /></div>'; |
||
141 | $newHTML+= '<div class="clear"></div>'; |
||
142 | $newHTML+= '<div class="tablenav top lightgraybackground">'; |
||
143 | $newHTML+= '<div id="pods-parts-display-per-page" class="left">'; |
||
144 | $newHTML+= '<label for="pods-parts-display-per-page-select">Display Per Page</label>'; |
||
145 | $newHTML+= '<select id="pods-parts-display-per-page-select" name="pods-parts-display-per-page-select">'; |
||
146 | $newHTML+= '<option value="40">40</option>'; |
||
147 | $newHTML+= '<option value="20">20</option>'; |
||
148 | $newHTML+= '<option value="10">10</option>'; |
||
149 | $newHTML+= '</select>'; |
||
150 | $newHTML+= '</div>'; |
||
151 | $newHTML+= '<div class="pods-parts-pagination">'; |
||
152 | $newHTML+= '<div class="tablenav-pages">'; |
||
153 | $newHTML+= '<span class="pagination-links">'; |
||
154 | $newHTML+= '<a class="first-page disabled" href="#" title="Go to the first page">«</a>'; |
||
155 | $newHTML+= '<a class="prev-page disabled" href="#" title="Go to the previous page">‹</a>'; |
||
156 | $newHTML+= '<span class="paging-input">'; |
||
157 | $newHTML+= '<input class="current-page" type="text" size="2" value="1" name="paged" title="Current page" />'; |
||
158 | $newHTML+= ' of '; |
||
159 | $newHTML+= '<span class="total-pages">10 </span>'; |
||
160 | $newHTML+= '</span>'; |
||
161 | $newHTML+= '<a class="next-page" href="#" title="Go to the next page">›</a>'; |
||
162 | $newHTML+= '<a class="last-page" href="#" title="Go to the last page">»</a>'; |
||
163 | $newHTML+= '</span>'; |
||
164 | $newHTML+= '</div>'; |
||
165 | $newHTML+= '</div>'; |
||
166 | $newHTML+= '</div>'; |
||
167 | $newHTML+= '<table style="width: 100%">'; |
||
168 | $newHTML+= '<tr>'; |
||
169 | $newHTML+= '<td>'; |
||
170 | $newHTML+= '<div class="bluehighlight">'; |
||
171 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
172 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
173 | $newHTML+= '</div>'; |
||
174 | $newHTML+= '</td>'; |
||
175 | $newHTML+= '<td>'; |
||
176 | $newHTML+= '<div class="bluehighlight">'; |
||
177 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
178 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
179 | $newHTML+= '</div>'; |
||
180 | $newHTML+= '</td>'; |
||
181 | $newHTML+= '<td>'; |
||
182 | $newHTML+= '<div class="bluehighlight">'; |
||
183 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
184 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
185 | $newHTML+= '</div>'; |
||
186 | $newHTML+= '</td>'; |
||
187 | $newHTML+= '<td>'; |
||
188 | $newHTML+= '<div class="bluehighlight">'; |
||
189 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
190 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
191 | $newHTML+= '</div>'; |
||
192 | $newHTML+= '</td>'; |
||
193 | $newHTML+= '</tr>'; |
||
194 | $newHTML+= '<tr>'; |
||
195 | $newHTML+= '<td>'; |
||
196 | $newHTML+= '<div class="bluehighlight">'; |
||
197 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
198 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
199 | $newHTML+= '</div>'; |
||
200 | $newHTML+= '</td>'; |
||
201 | $newHTML+= '<td>'; |
||
202 | $newHTML+= '<div class="bluehighlight">'; |
||
203 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
204 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
205 | $newHTML+= '</div>'; |
||
206 | $newHTML+= '</td>'; |
||
207 | $newHTML+= '<td>'; |
||
208 | $newHTML+= '<div class="bluehighlight">'; |
||
209 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
210 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
211 | $newHTML+= '</div>'; |
||
212 | $newHTML+= '</td>'; |
||
213 | $newHTML+= '<td>'; |
||
214 | $newHTML+= '<div class="bluehighlight">'; |
||
215 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
216 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
217 | $newHTML+= '</div>'; |
||
218 | $newHTML+= '</td>'; |
||
219 | $newHTML+= '</tr>'; |
||
220 | $newHTML+= '</table>'; |
||
221 | $newHTML+= '<div class="tablenav top lightgraybackground">'; |
||
222 | $newHTML+= '<div id="pods-parts-display-per-page" class="left">'; |
||
223 | $newHTML+= '<label for="pods-parts-display-per-page-select">Display Per Page:</label>'; |
||
224 | $newHTML+= '<select id="pods-parts-display-per-page-select" name="pods-parts-display-per-page-select">'; |
||
225 | $newHTML+= '<option value="40">40</option>'; |
||
226 | $newHTML+= '<option value="20">20</option>'; |
||
227 | $newHTML+= '<option value="10">10</option>'; |
||
228 | $newHTML+= '</select>'; |
||
229 | $newHTML+= '</div>'; |
||
230 | $newHTML+= '<div class="pods-parts-pagination">'; |
||
231 | $newHTML+= '<div class="tablenav-pages">'; |
||
232 | $newHTML+= '<span class="pagination-links">'; |
||
233 | $newHTML+= '<a class="first-page disabled" href="#" title="Go to the first page">«</a>'; |
||
234 | $newHTML+= '<a class="prev-page disabled" href="#" title="Go to the previous page">‹</a>'; |
||
235 | $newHTML+= '<span class="paging-input">'; |
||
236 | $newHTML+= '<input class="current-page" type="text" size="2" value="1" name="paged" title="Current page" />'; |
||
237 | $newHTML+= ' of '; |
||
238 | $newHTML+= '<span class="total-pages">10 </span>'; |
||
239 | $newHTML+= '</span>'; |
||
240 | $newHTML+= '<a class="next-page" href="#" title="Go to the next page">›</a>'; |
||
241 | $newHTML+= '<a class="last-page" href="#" title="Go to the last page">»</a>'; |
||
242 | $newHTML+= '</span>'; |
||
243 | $newHTML+= '</div>'; |
||
244 | $newHTML+= '</div>'; |
||
245 | $newHTML+= '</div>'; |
||
246 | $('#pods-parts-popup').html($newHTML); |
||
247 | updateButtonText('Update Pods Template'); |
||
248 | } |
||
249 | |||
250 | function populateAddTemplate() { |
||
251 | $newHTML = '<p>Create a new Pods Template by entering the name in the text field.</p>'; |
||
252 | $newHTML+= '<label for="pods-parts-dialog-template-new">Name:</label><input id="pods-parts-dialog-template-new" name="pods-parts-dialog-template-new" type="text" />'; |
||
253 | $newHTML+= '<input class="submitnew button-primary" type="" value="Add New Pods Template" />'; |
||
254 | $newHTML+= '<input type="hidden" value="newpodstemplate" />'; |
||
255 | |||
256 | $('#pods-parts-popup').html($newHTML); |
||
257 | updateButtonText('Save New Pods Template'); |
||
258 | } |
||
259 | |||
260 | function populateEditHelpers() { |
||
261 | $newHTML = '<div id="pods-parts-search"><label for="pods-parts-search-box">Search:</label><input id="pods-parts-search-box" name="pods-parts-search-box" type="text" /><input id="pods-parts-search-box-submit" name="pods-parts-search-box-submit" class="button-secondary" value="Search Helpers" /></div>'; |
||
262 | $newHTML+= '<div id="pods-parts-filter"><label for="pods-parts-filter-box">Pods Helper Type:</label>'; |
||
263 | $newHTML+= '<select id="pods-parts-filter-box" name="pods-parts-filter-box">'; |
||
264 | $newHTML+= '<option value="all">-- All Types --</option>'; |
||
265 | $newHTML+= '<option value="display">Display</option>'; |
||
266 | $newHTML+= '<option value="input">Input</option>'; |
||
267 | $newHTML+= '<option value="presave">Pre-Save</option>'; |
||
268 | $newHTML+= '<option value="postsave">Post-Save</option>'; |
||
269 | $newHTML+= '</select>'; |
||
270 | $newHTML+= '<input id="pods-parts-filter-submit" name="pods-parts-filter-submit" class="button-secondary" value="Filter" />'; |
||
271 | $newHTML+= '</div>'; |
||
272 | $newHTML+= '<div class="clear"></div>'; |
||
273 | $newHTML+= '<div class="tablenav top lightgraybackground">'; |
||
274 | $newHTML+= '<div id="pods-parts-display-per-page" class="left">'; |
||
275 | $newHTML+= '<label for="pods-parts-display-per-page-select">Display Per Page:</label>'; |
||
276 | $newHTML+= '<select id="pods-parts-display-per-page-select" name="pods-parts-display-per-page-select">'; |
||
277 | $newHTML+= '<option value="40">40</option>'; |
||
278 | $newHTML+= '<option value="20">20</option>'; |
||
279 | $newHTML+= '<option value="10">10</option>'; |
||
280 | $newHTML+= '</select>'; |
||
281 | $newHTML+= '</div>'; |
||
282 | $newHTML+= '<div class="pods-parts-pagination">'; |
||
283 | $newHTML+= '<div class="tablenav-pages">'; |
||
284 | $newHTML+= '<span class="pagination-links">'; |
||
285 | $newHTML+= '<a class="first-page disabled" href="#" title="Go to the first page">«</a>'; |
||
286 | $newHTML+= '<a class="prev-page disabled" href="#" title="Go to the previous page">‹</a>'; |
||
287 | $newHTML+= '<span class="paging-input">'; |
||
288 | $newHTML+= '<input class="current-page" type="text" size="2" value="1" name="paged" title="Current page" />'; |
||
289 | $newHTML+= ' of '; |
||
290 | $newHTML+= '<span class="total-pages">10 </span>'; |
||
291 | $newHTML+= '</span>'; |
||
292 | $newHTML+= '<a class="next-page" href="#" title="Go to the next page">›</a>'; |
||
293 | $newHTML+= '<a class="last-page" href="#" title="Go to the last page">»</a>'; |
||
294 | $newHTML+= '</span>'; |
||
295 | $newHTML+= '</div>'; |
||
296 | $newHTML+= '</div>'; |
||
297 | $newHTML+= '</div>'; |
||
298 | $newHTML+= '<table style="width: 100%">'; |
||
299 | $newHTML+= '<tr>'; |
||
300 | $newHTML+= '<td>'; |
||
301 | $newHTML+= '<div class="bluehighlight">'; |
||
302 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
303 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
304 | $newHTML+= '</div>'; |
||
305 | $newHTML+= '</td>'; |
||
306 | $newHTML+= '<td>'; |
||
307 | $newHTML+= '<div class="bluehighlight">'; |
||
308 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
309 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
310 | $newHTML+= '</div>'; |
||
311 | $newHTML+= '</td>'; |
||
312 | $newHTML+= '<td>'; |
||
313 | $newHTML+= '<div class="bluehighlight">'; |
||
314 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
315 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
316 | $newHTML+= '</div>'; |
||
317 | $newHTML+= '</td>'; |
||
318 | $newHTML+= '<td>'; |
||
319 | $newHTML+= '<div class="bluehighlight">'; |
||
320 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
321 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
322 | $newHTML+= '</div>'; |
||
323 | $newHTML+= '</td>'; |
||
324 | $newHTML+= '</tr>'; |
||
325 | $newHTML+= '<tr>'; |
||
326 | $newHTML+= '<td>'; |
||
327 | $newHTML+= '<div class="bluehighlight">'; |
||
328 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
329 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
330 | $newHTML+= '</div>'; |
||
331 | $newHTML+= '</td>'; |
||
332 | $newHTML+= '<td>'; |
||
333 | $newHTML+= '<div class="bluehighlight">'; |
||
334 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
335 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
336 | $newHTML+= '</div>'; |
||
337 | $newHTML+= '</td>'; |
||
338 | $newHTML+= '<td>'; |
||
339 | $newHTML+= '<div class="bluehighlight">'; |
||
340 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
341 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
342 | $newHTML+= '</div>'; |
||
343 | $newHTML+= '</td>'; |
||
344 | $newHTML+= '<td>'; |
||
345 | $newHTML+= '<div class="bluehighlight">'; |
||
346 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
347 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
348 | $newHTML+= '</div>'; |
||
349 | $newHTML+= '</td>'; |
||
350 | $newHTML+= '</tr>'; |
||
351 | $newHTML+= '<tr>'; |
||
352 | $newHTML+= '<td>'; |
||
353 | $newHTML+= '<div class="bluehighlight">'; |
||
354 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
355 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
356 | $newHTML+= '</div>'; |
||
357 | $newHTML+= '</td>'; |
||
358 | $newHTML+= '<td>'; |
||
359 | $newHTML+= '<div class="bluehighlight">'; |
||
360 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
361 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
362 | $newHTML+= '</div>'; |
||
363 | $newHTML+= '</td>'; |
||
364 | $newHTML+= '<td>'; |
||
365 | $newHTML+= '<div class="bluehighlight">'; |
||
366 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
367 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
368 | $newHTML+= '</div>'; |
||
369 | $newHTML+= '</td>'; |
||
370 | $newHTML+= '<td>'; |
||
371 | $newHTML+= '<div class="bluehighlight">'; |
||
372 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
373 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
374 | $newHTML+= '</div>'; |
||
375 | $newHTML+= '</td>'; |
||
376 | $newHTML+= '</tr>'; |
||
377 | $newHTML+= '<tr>'; |
||
378 | $newHTML+= '<td>'; |
||
379 | $newHTML+= '<div class="bluehighlight">'; |
||
380 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
381 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
382 | $newHTML+= '</div>'; |
||
383 | $newHTML+= '</td>'; |
||
384 | $newHTML+= '<td>'; |
||
385 | $newHTML+= '<div class="bluehighlight">'; |
||
386 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
387 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
388 | $newHTML+= '</div>'; |
||
389 | $newHTML+= '</td>'; |
||
390 | $newHTML+= '<td>'; |
||
391 | $newHTML+= '<div class="bluehighlight">'; |
||
392 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
393 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
394 | $newHTML+= '</div>'; |
||
395 | $newHTML+= '</td>'; |
||
396 | $newHTML+= '<td>'; |
||
397 | $newHTML+= '<div class="bluehighlight">'; |
||
398 | $newHTML+= '<span class="blue"><a href="#">file/photo/single</a></span>'; |
||
399 | $newHTML+= '<span class="gray">Display</span><span class="actions"><a href="#" class="editpodspart">Edit</a> | <a href="#" class="deletepodspart">Delete</a></span>'; |
||
400 | $newHTML+= '</div>'; |
||
401 | $newHTML+= '</td>'; |
||
402 | $newHTML+= '</tr>'; |
||
403 | $newHTML+= '</table>'; |
||
404 | $newHTML+= '<div class="tablenav top lightgraybackground">'; |
||
405 | $newHTML+= '<div id="pods-parts-display-per-page" class="left">'; |
||
406 | $newHTML+= '<label for="pods-parts-display-per-page-select">Display Per Page</label>'; |
||
407 | $newHTML+= '<select id="pods-parts-display-per-page-select" name="pods-parts-display-per-page-select">'; |
||
408 | $newHTML+= '<option value="40">40</option>'; |
||
409 | $newHTML+= '<option value="20">20</option>'; |
||
410 | $newHTML+= '<option value="10">10</option>'; |
||
411 | $newHTML+= '</select>'; |
||
412 | $newHTML+= '</div>'; |
||
413 | $newHTML+= '<div class="pods-parts-pagination">'; |
||
414 | $newHTML+= '<div class="tablenav-pages">'; |
||
415 | $newHTML+= '<span class="pagination-links">'; |
||
416 | $newHTML+= '<a class="first-page disabled" href="#" title="Go to the first page">«</a>'; |
||
417 | $newHTML+= '<a class="prev-page disabled" href="#" title="Go to the previous page">‹</a>'; |
||
418 | $newHTML+= '<span class="paging-input">'; |
||
419 | $newHTML+= '<input class="current-page" type="text" size="2" value="1" name="paged" title="Current page" />'; |
||
420 | $newHTML+= ' of '; |
||
421 | $newHTML+= '<span class="total-pages">10 </span>'; |
||
422 | $newHTML+= '</span>'; |
||
423 | $newHTML+= '<a class="next-page" href="#" title="Go to the next page">›</a>'; |
||
424 | $newHTML+= '<a class="last-page" href="#" title="Go to the last page">»</a>'; |
||
425 | $newHTML+= '</span>'; |
||
426 | $newHTML+= '</div>'; |
||
427 | $newHTML+= '</div>'; |
||
428 | $newHTML+= '</div>'; |
||
429 | $('#pods-parts-popup').html($newHTML); |
||
430 | updateButtonText('Update Pods Helper'); |
||
431 | } |
||
432 | |||
433 | function populateAddHelper() { |
||
434 | $newHTML = '<p>Create a new Pods Helper by entering the name in the text field and selecting what kind of helper it is.</p>'; |
||
435 | $newHTML+= '<label for="pods-parts-dialog-helper-new">Name:</label><input id="pods-parts-dialog-helper-new" name="pods-parts-dialog-helper-new" type="text" />'; |
||
436 | $newHTML+= '<label for="pods-parts-dialog-helper-new-type">Type:</label>'; |
||
437 | $newHTML+= '<select id="pods-parts-dialog-helper-new-type" name="pods-parts-dialog-helper-new-type">'; |
||
438 | $newHTML+= '<option value="display">Display</option>'; |
||
439 | $newHTML+= '<option value="input">Input</option>'; |
||
440 | $newHTML+= '<option value="presave">Pre-Save</option>'; |
||
441 | $newHTML+= '<option value="postsave">Post-Save</option>'; |
||
442 | $newHTML+= '</select>'; |
||
443 | $newHTML+= '<input class="submitnew button-primary" type="" value="Add New Pods Helper" />'; |
||
444 | $newHTML+= '<input type="hidden" value="newpodshelper" />'; |
||
445 | $('#pods-parts-popup').html($newHTML); |
||
446 | updateButtonText('Save New Pods Helper'); |
||
447 | } |
||
448 | |||
449 | /** |
||
450 | * Event Handlers |
||
451 | */ |
||
452 | $('#pods-parts-pages-edit').click(function(e){ |
||
453 | e.preventDefault(); |
||
454 | populateEditPages(); |
||
455 | $('#pods-parts-popup').dialog({title: 'Select Pods Page to Edit', width: $bigWidth}).dialog('open'); |
||
0 ignored issues
–
show
|
|||
456 | }); |
||
457 | |||
458 | $('#pods-parts-pages-add').click(function(e){ |
||
459 | e.preventDefault(); |
||
460 | populateAddPage(); |
||
461 | $('#pods-parts-popup').dialog({title: 'Create New Pods Page', width: $smallWidth}).dialog('open'); |
||
0 ignored issues
–
show
|
|||
462 | }); |
||
463 | |||
464 | $('#pods-parts-templates-edit').click(function(e){ |
||
465 | e.preventDefault(); |
||
466 | populateEditTemplates(); |
||
467 | $('#pods-parts-popup').dialog({title: 'Select Pods Template to Edit', width: $bigWidth}).dialog('open'); |
||
0 ignored issues
–
show
|
|||
468 | }); |
||
469 | |||
470 | $('#pods-parts-templates-add').click(function(e){ |
||
471 | e.preventDefault(); |
||
472 | populateAddTemplate(); |
||
473 | $('#pods-parts-popup').dialog({title: 'Create New Pods Template', width: $smallWidth}).dialog('open'); |
||
0 ignored issues
–
show
|
|||
474 | }); |
||
475 | |||
476 | $('#pods-parts-helpers-edit').click(function(e){ |
||
477 | e.preventDefault(); |
||
478 | populateEditHelpers(); |
||
479 | $('#pods-parts-popup').dialog({title: 'Select Pods Helper to Edit', width: $bigWidth}).dialog('open'); |
||
0 ignored issues
–
show
|
|||
480 | }); |
||
481 | |||
482 | $('#pods-parts-helpers-add').click(function(e){ |
||
483 | e.preventDefault(); |
||
484 | populateAddHelper(); |
||
485 | $('#pods-parts-popup').dialog({title: 'Create New Pods Helper', width: $smallWidth}).dialog('open'); |
||
0 ignored issues
–
show
|
|||
486 | }); |
||
487 | |||
488 | /** |
||
489 | * Run Startup Commands |
||
490 | */ |
||
491 | $('#pods-parts-popup').dialog({ |
||
492 | autoOpen: false, |
||
493 | closeOnEscape: true, |
||
494 | modal: true, |
||
495 | dialogClass: 'dialogWithDropShadow', |
||
496 | resizable: false, |
||
497 | hide: 'fade', |
||
498 | show: 'fade' |
||
499 | }) |
||
0 ignored issues
–
show
There should be a semicolon.
Requirement of semicolons purely is a coding style issue since JavaScript has specific rules about semicolons which are followed by all browsers. Further Readings: ![]() |
|||
500 | }); |