|
@@ -44,10 +44,14 @@
|
44
|
44
|
<script src="${request.contextPath}/static/plugins/scrollup/jquery.scrollUp.min.js"></script>
|
45
|
45
|
<!-- pace -->
|
46
|
46
|
<script src="${request.contextPath}/static/plugins/pace/pace.min.js"></script>
|
47
|
|
- <script src="${request.contextPath}/static/plugins/jquery/jquery.cookie.js"></script>
|
|
47
|
+ <#-- jquery cookie -->
|
|
48
|
+ <script src="${request.contextPath}/static/plugins/jquery/jquery.cookie.js"></script>
|
|
49
|
+
|
|
50
|
+ <#-- common -->
|
|
51
|
+ <script src="${request.contextPath}/static/js/xxl.alert.1.js"></script>
|
48
|
52
|
<script src="${request.contextPath}/static/js/common.1.js"></script>
|
49
|
|
-
|
50
|
53
|
<script>var base_url = '${request.contextPath}';</script>
|
|
54
|
+
|
51
|
55
|
</#macro>
|
52
|
56
|
|
53
|
57
|
<#macro commonHeader>
|
|
@@ -175,110 +179,4 @@
|
175
|
179
|
<a href="http://my.oschina.net/xuxueli/blog/690978" target="_blank" >oschina</a>
|
176
|
180
|
</strong><!-- All rights reserved. -->
|
177
|
181
|
</footer>
|
178
|
|
-</#macro>
|
179
|
|
-
|
180
|
|
-<#macro comAlert >
|
181
|
|
- <!-- ComAlert.模态框Modal -->
|
182
|
|
- <div class="modal fade" id="ComAlert" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
183
|
|
- <div class="modal-dialog">
|
184
|
|
- <div class="modal-content">
|
185
|
|
- <!-- <div class="modal-header"><h4 class="modal-title"><strong>提示:</strong></h4></div> -->
|
186
|
|
- <div class="modal-body"><div class="alert alert-success"></div></div>
|
187
|
|
- <div class="modal-footer">
|
188
|
|
- <div class="text-center" >
|
189
|
|
- <button type="button" class="btn btn-default ok" data-dismiss="modal" >确认</button>
|
190
|
|
- </div>
|
191
|
|
- </div>
|
192
|
|
- </div>
|
193
|
|
- </div>
|
194
|
|
- </div>
|
195
|
|
- <!-- ComConfirm.模态框Modal -->
|
196
|
|
- <div class="modal fade" id="ComConfirm" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
197
|
|
- <div class="modal-dialog">
|
198
|
|
- <div class="modal-content">
|
199
|
|
- <div class="modal-body"><div class="alert alert-success"></div></div>
|
200
|
|
- <div class="modal-footer">
|
201
|
|
- <div class="text-center" >
|
202
|
|
- <button type="button" class="btn btn-primary ok" data-dismiss="modal" >确认</button>
|
203
|
|
- <button type="button" class="btn btn-default cancel" data-dismiss="modal" >取消</button>
|
204
|
|
- </div>
|
205
|
|
- </div>
|
206
|
|
- </div>
|
207
|
|
- </div>
|
208
|
|
- </div>
|
209
|
|
- <!-- ComAlertTec.模态框Modal-科技感 -->
|
210
|
|
- <div class="modal fade" id="ComAlertTec" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
211
|
|
- <div class="modal-dialog">
|
212
|
|
- <div class="modal-content-tec">
|
213
|
|
- <div class="modal-body"><div class="alert" style="color:#fff;"></div></div>
|
214
|
|
- <div class="modal-footer">
|
215
|
|
- <div class="text-center" >
|
216
|
|
- <button type="button" class="btn btn-info ok" data-dismiss="modal" >确认</button>
|
217
|
|
- </div>
|
218
|
|
- </div>
|
219
|
|
- </div>
|
220
|
|
- </div>
|
221
|
|
- </div>
|
222
|
|
- <script>
|
223
|
|
- // 通用提示
|
224
|
|
- var ComAlert = {
|
225
|
|
- show:function(type, msg, callback){
|
226
|
|
- // 弹框初始
|
227
|
|
- if (type == 1) {
|
228
|
|
- $('#ComAlert .alert').attr('class', 'alert alert-success');
|
229
|
|
- } else {
|
230
|
|
- $('#ComAlert .alert').attr('class', 'alert alert-warning');
|
231
|
|
- }
|
232
|
|
- $('#ComAlert .alert').html(msg);
|
233
|
|
- $('#ComAlert').modal('show');
|
234
|
|
-
|
235
|
|
- $('#ComAlert .ok').click(function(){
|
236
|
|
- $('#ComAlert').modal('hide');
|
237
|
|
- if(typeof callback == 'function') {
|
238
|
|
- callback();
|
239
|
|
- }
|
240
|
|
- });
|
241
|
|
-
|
242
|
|
- // $("#ComAlert").on('hide.bs.modal', function () { }); // 监听关闭
|
243
|
|
- }
|
244
|
|
- };
|
245
|
|
- // 通用确认弹框
|
246
|
|
- var ComConfirm = {
|
247
|
|
- show:function(msg, callback){
|
248
|
|
- // 弹框初始
|
249
|
|
- $('#ComConfirm .alert').attr('class', 'alert alert-warning');
|
250
|
|
- $('#ComConfirm .alert').html(msg);
|
251
|
|
- $('#ComConfirm').modal('show');
|
252
|
|
-
|
253
|
|
- $('#ComConfirm .ok').unbind("click"); // 解绑陈旧事件
|
254
|
|
- $('#ComConfirm .ok').click(function(){
|
255
|
|
- $('#ComConfirm').modal('hide');
|
256
|
|
- if(typeof callback == 'function') {
|
257
|
|
- callback();
|
258
|
|
- return;
|
259
|
|
- }
|
260
|
|
- });
|
261
|
|
-
|
262
|
|
- $('#ComConfirm .cancel').click(function(){
|
263
|
|
- $('#ComConfirm').modal('hide');
|
264
|
|
- return;
|
265
|
|
- });
|
266
|
|
- }
|
267
|
|
- };
|
268
|
|
- // 提示-科技主题
|
269
|
|
- var ComAlertTec = {
|
270
|
|
- show:function(msg, callback){
|
271
|
|
- // 弹框初始
|
272
|
|
- $('#ComAlertTec .alert').html(msg);
|
273
|
|
- $('#ComAlertTec').modal('show');
|
274
|
|
-
|
275
|
|
- $('#ComAlertTec .ok').click(function(){
|
276
|
|
- $('#ComAlertTec').modal('hide');
|
277
|
|
- if(typeof callback == 'function') {
|
278
|
|
- callback();
|
279
|
|
- }
|
280
|
|
- });
|
281
|
|
- }
|
282
|
|
- };
|
283
|
|
- </script>
|
284
|
182
|
</#macro>
|