Skip to content

Instantly share code, notes, and snippets.

View yallups's full-sized avatar

Shawn Jones yallups

View GitHub Profile

Keybase proof

I hereby claim:

  • I am yallups on github.
  • I am yallups (https://keybase.io/yallups) on keybase.
  • I have a public key ASBFzNlTZIfFKy_JXLWRAzo_Srz5q9oAxRM2uXfjxd9hfwo

To claim this, I am signing this object:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<div id="root"></div>
<script src="https://www.promisejs.org/polyfills/promise-4.0.0.js"></script>
<div class="right-col">
<div class=" mw_title">Order Summary</div>
<div class="details-area clearfix">
<table class="product-grid-sm show-border"></table>
</div>
<div class=" mw_sum_item mw_divide">
@yallups
yallups / cancel-select2-opening.js
Last active October 19, 2015 22:54
This is a work around for returning false from `select:opening`
$select.on('select2:opening', function () {
...
$select.one('select2:open', function () {
$select.select2('close');
});
});
@yallups
yallups / browser compatibility checker
Created August 8, 2015 02:51
First version of a is supported browser function dependent on jquery
function isSupportedBrowser() {
var $browser = jQuery.browser,
supportedBrowsers = { // Order is important
'android': 4,
'chrome' : 34,
'safari' : 7,
'mozilla': 37,
'msie' : 10
},
b, android = getAndroidVersion();