This file contains 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
function fakeProxy(fn, context) { | |
var args = Array.prototype.slice.call(arguments, 2); | |
return function () { | |
fn.apply(context, args); | |
} | |
} |
This file contains 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
var Callbacks = function () { | |
// An array of functions. | |
var callbacks = []; | |
/** | |
* Pushes a supplied function into the list of functions. | |
*/ | |
function addCallback(callback) { | |
callbacks.push(callback); | |
} | |
/** |
This file contains 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
// @see http://underscorejs.org/underscore.js | |
// Returns a function, that, as long as it continues to be invoked, will not | |
// be triggered. The function will be called after it stops being called for | |
// N milliseconds. If `immediate` is passed, trigger the function on the | |
// leading edge, instead of the trailing. | |
_.debounce = function(func, wait, immediate) { | |
var timeout; | |
return function() { | |
var context = this, args = arguments; | |
var later = function() { |
This file contains 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
var Speaker = (function () { | |
function Hello() { | |
} | |
Hello.prototype.repeatAfterMe = function (message) { | |
return message || 'fine, be that way'; | |
}; | |
return Hello; | |
}()); |
This file contains 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
/* @group Responsive */ | |
/* @group Modern browsers */ | |
@media screen { | |
#navigation .content > .menu > li > a { | |
overflow: hidden; | |
text-overflow: ellipsis; | |
white-space: nowrap; | |
} |
This file contains 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
(function ($) { | |
var plugin = 'responsiviser'; | |
// Local copy of jQuery. | |
var Drupal = window.Drupal; | |
Drupal.behaviors[plugin] = { | |
attach: function (context, settings) { | |
$('body').once(plugin, function (index) { | |
var $pageWidth = $('.page-width'); | |
var $stackWidth = $('.stack-width'); |
This file contains 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
From aca29b9e2f0a7df396837cb3bf6d6fda1edec28d Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?"J.=20Ren=C3=A9e=20Beach"?= <jesse.beach@acquia.com> | |
Date: Thu, 26 Jul 2012 13:35:50 -0400 | |
Subject: [PATCH 1/4] DG-4778 / DG-4776 - changed the registration of an | |
iframe resizing callback from the jQuery UI 'show' | |
event to the 'load' event so that the calculation of | |
the height of iframe content happens after the jQuery | |
UI tabs are loaded and painted. | |
MIME-Version: 1.0 | |
Content-Type: text/plain; charset=UTF-8 |
This file contains 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
/** | |
* supplantClass() jQuery plugin | |
* | |
* Adds the replacement class string to each element. | |
* | |
* If a class or classes contain the needle, they are removed from the element. | |
*/ | |
(function ($) { | |
// Add the plugin as a property of the jQuery fn object. | |
$.fn['supplantClass'] = function (needle, replacement) { |
This file contains 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
diff --git a/css/media.css b/css/media.css | |
index 68cfc6273971faafa5209b8fb392da4b867ed43d..2084b79a4388b2636e7817479d0d19b5147f78b6 100644 | |
--- a/css/media.css | |
+++ b/css/media.css | |
@@ -247,14 +247,8 @@ div#media-browser .throbber { | |
background: #FFF; | |
} | |
-#media-browser-tabset .media-browser-tab { | |
- border: 1px solid #aaa; |
This file contains 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
diff --git a/includes/media.browser.inc b/includes/media.browser.inc | |
index ae1c826..8c0d010 100644 | |
--- a/includes/media.browser.inc | |
+++ b/includes/media.browser.inc | |
@@ -69,17 +69,26 @@ function media_browser($selected = NULL) { | |
//Add any JS settings | |
$browser_settings[$key] = isset($plugin['#settings']) ? $plugin['#settings'] : array(); | |
- // If this is a "ajax" style tab, add the href, otherwise an id. | |
- $href = isset($plugin['#callback']) ? $plugin['#callback'] : "#media-tab-$key"; |