Created
August 5, 2016 16:34
-
-
Save awead/88af840c9292217c936a275ba7a1dc25 to your computer and use it in GitHub Desktop.
Working and non-working JS examples tested in both Chrome and Firefox on Mac OSX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// This works in 4.2.7 | |
$(document).ready(function() { | |
setTimeout( function() { | |
$('#browse-btn').browseEverything() | |
.done(function(data) { $('#status').html(data.length.toString() + " items selected") }) | |
.cancel(function() { window.alert('Canceled!') }); | |
})},10); | |
// This does not work in 4.2.7 | |
$(document).ready(function() { | |
$('#browse-btn').browseEverything() | |
.done(function(data) { $('#status').html(data.length.toString() + " items selected") }) | |
.cancel(function() { window.alert('Canceled!') }); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment