Skip to content

Commit e9aed14

Browse files
committed
update demo with new backdrop feature
1 parent 97f271c commit e9aed14

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

demo/demo.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,12 +318,17 @@ body{
318318
right:180px;
319319
}
320320

321+
#advanced .show-pop-backdrop{
322+
bottom:20px;
323+
left:20px;
324+
}
325+
321326
#advanced form{
322327
margin:120px auto 0 auto;
323328
width:500px;
324329
border:1px solid #eee;
325330
padding:20px;
326-
height:350px;
331+
height:300px;
327332
}
328333

329334
#events {

demo/index-dev.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,9 @@ <h2 >Input hints</h2>
342342

343343
<button type="submit" class="btn btn-default">Submit</button>
344344
<div class="clearfix"></div>
345+
345346
</form>
347+
<a href="#" class="show-pop-backdrop btn btn-default " data-placement="auto">pop with backdrop</a>
346348
</div>
347349
<div id="events" class="content">
348350
<div class="btns">
@@ -552,6 +554,8 @@ <h2 >Input hints</h2>
552554
}
553555
});
554556

557+
$('a.show-pop-backdrop').webuiPopover('destroy').webuiPopover({content:'popover with backdrop!', backdrop:true});
558+
555559
var
556560
iframeSettings = { width:500,
557561
height:350,

demo/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ <h2 >Input hints</h2>
345345
<button type="submit" class="btn btn-default">Submit</button>
346346
<div class="clearfix"></div>
347347
</form>
348+
<a href="#" class="show-pop-backdrop btn btn-default " data-placement="auto">pop with backdrop</a>
348349
</div>
349350
<div id="events" class="content">
350351
<div class="btns">
@@ -582,6 +583,8 @@ <h2 >Input hints</h2>
582583
}};
583584
$('a.show-pop-async').webuiPopover('destroy').webuiPopover($.extend({},settings,asyncSettings));
584585

586+
$('a.show-pop-backdrop').webuiPopover('destroy').webuiPopover({content:'popover with backdrop!', backdrop:true});
587+
585588

586589
// var nocacheSettings = {
587590
// cache:true,
@@ -611,6 +614,8 @@ <h2 >Input hints</h2>
611614
});
612615
});
613616

617+
618+
614619

615620
$('body').on('click','.pop-click',function(e){
616621
e.preventDefault();

0 commit comments

Comments
 (0)