Skip to content

Commit

Permalink
Make border option to work in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
rigon committed Aug 18, 2017
1 parent daab7c8 commit fcae718
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,12 @@ <h2 id="customized">Customized dialog</h2>
{ button: {name: &quot;button&quot;, value: &quot;Open image&quot;, class: &quot;btn btn-info&quot;, onclick: function() {
bootpopup({
title: $(&apos;#title&apos;).val(),
content: [ { img: {src: $(&apos;#link&apos;).val()}} ]});
content: [ { img: {src: $(&apos;#link&apos;).val()}} ],
before: function(window) {
if($(&quot;#border&quot;).prop(&quot;checked&quot;))
$(&quot;#image&quot;).attr(&quot;style&quot;, &quot;border: 10px solid red&quot;);
}
});
}
}}],
cancel: function(data, array, event) { alert(&quot;Cancel&quot;); },
Expand Down Expand Up @@ -296,7 +301,12 @@ <h2 id="customized">Customized dialog</h2>
{ button: {name: "button", value: "Open image", class: "btn btn-info", onclick: function() {
bootpopup({
title: $('#title').val(),
content: [ { img: {src: $('#link').val()}} ]});
content: [ { img: {src: $('#link').val(), id: "image"}} ],
before: function(window) {
if($('#border').prop('checked'))
$('#image').attr('style', 'border: 10px solid red');
}
});
}
}}],
before: function(window) { alert("Before"); },
Expand Down

0 comments on commit fcae718

Please sign in to comment.