You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by jo...@apache.org on 2018/01/12 20:46:12 UTC
svn commit: r1821031 [1/3] - in /nifi/site/trunk: assets/js/foundation.js
assets/stylesheets/app.css download.html
Author: joewitt
Date: Fri Jan 12 20:46:12 2018
New Revision: 1821031
URL: http://svn.apache.org/viewvc?rev=1821031&view=rev
Log:
NIFI-4751
Modified:
nifi/site/trunk/assets/js/foundation.js
nifi/site/trunk/assets/stylesheets/app.css
nifi/site/trunk/download.html
Modified: nifi/site/trunk/assets/js/foundation.js
URL: http://svn.apache.org/viewvc/nifi/site/trunk/assets/js/foundation.js?rev=1821031&r1=1821030&r2=1821031&view=diff
==============================================================================
--- nifi/site/trunk/assets/js/foundation.js (original)
+++ nifi/site/trunk/assets/js/foundation.js Fri Jan 12 20:46:12 2018
@@ -1,7 +1,7 @@
/*
* Foundation Responsive Library
* http://foundation.zurb.com
- * Copyright 2015, ZURB
+ * Copyright 2014, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
@@ -10,12 +10,14 @@
'use strict';
var header_helpers = function (class_array) {
+ var i = class_array.length;
var head = $('head');
- head.prepend($.map(class_array, function (class_name) {
- if (head.has('.' + class_name).length === 0) {
- return '<meta class="' + class_name + '" />';
+
+ while (i--) {
+ if (head.has('.' + class_array[i]).length === 0) {
+ head.append('<meta class="' + class_array[i] + '" />');
}
- }));
+ }
};
header_helpers([
@@ -288,30 +290,21 @@
return string;
}
- function MediaQuery(selector) {
- this.selector = selector;
- this.query = '';
- }
-
- MediaQuery.prototype.toString = function () {
- return this.query || (this.query = S(this.selector).css('font-family').replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g, ''));
- };
-
window.Foundation = {
name : 'Foundation',
- version : '5.5.3',
+ version : '5.5.2',
media_queries : {
- 'small' : new MediaQuery('.foundation-mq-small'),
- 'small-only' : new MediaQuery('.foundation-mq-small-only'),
- 'medium' : new MediaQuery('.foundation-mq-medium'),
- 'medium-only' : new MediaQuery('.foundation-mq-medium-only'),
- 'large' : new MediaQuery('.foundation-mq-large'),
- 'large-only' : new MediaQuery('.foundation-mq-large-only'),
- 'xlarge' : new MediaQuery('.foundation-mq-xlarge'),
- 'xlarge-only' : new MediaQuery('.foundation-mq-xlarge-only'),
- 'xxlarge' : new MediaQuery('.foundation-mq-xxlarge')
+ 'small' : S('.foundation-mq-small').css('font-family').replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g, ''),
+ 'small-only' : S('.foundation-mq-small-only').css('font-family').replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g, ''),
+ 'medium' : S('.foundation-mq-medium').css('font-family').replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g, ''),
+ 'medium-only' : S('.foundation-mq-medium-only').css('font-family').replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g, ''),
+ 'large' : S('.foundation-mq-large').css('font-family').replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g, ''),
+ 'large-only' : S('.foundation-mq-large-only').css('font-family').replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g, ''),
+ 'xlarge' : S('.foundation-mq-xlarge').css('font-family').replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g, ''),
+ 'xlarge-only' : S('.foundation-mq-xlarge-only').css('font-family').replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g, ''),
+ 'xxlarge' : S('.foundation-mq-xxlarge').css('font-family').replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g, '')
},
stylesheet : $('<style></style>').appendTo('head')[0].sheet,
@@ -736,7 +729,7 @@
Foundation.libs.topbar = {
name : 'topbar',
- version : '5.5.3',
+ version : '5.5.2',
settings : {
index : 0,
@@ -897,17 +890,17 @@
self.toggle(this);
})
.on('click.fndtn.topbar contextmenu.fndtn.topbar', '.top-bar .top-bar-section li a[href^="#"],[' + this.attr_name() + '] .top-bar-section li a[href^="#"]', function (e) {
- var li = $(this).closest('li'),
- topbar = li.closest('[' + self.attr_name() + ']'),
- settings = topbar.data(self.attr_name(true) + '-init');
-
- if (settings.dropdown_autoclose && settings.is_hover) {
- var hoverLi = $(this).closest('.hover');
- hoverLi.removeClass('hover');
- }
- if (self.breakpoint() && !li.hasClass('back') && !li.hasClass('has-dropdown')) {
- self.toggle();
- }
+ var li = $(this).closest('li'),
+ topbar = li.closest('[' + self.attr_name() + ']'),
+ settings = topbar.data(self.attr_name(true) + '-init');
+
+ if (settings.dropdown_autoclose && settings.is_hover) {
+ var hoverLi = $(this).closest('.hover');
+ hoverLi.removeClass('hover');
+ }
+ if (self.breakpoint() && !li.hasClass('back') && !li.hasClass('has-dropdown')) {
+ self.toggle();
+ }
})
.on('click.fndtn.topbar', '[' + this.attr_name() + '] li.has-dropdown', function (e) {
@@ -1191,12 +1184,10 @@
;;(function ($, window, document, undefined) {
'use strict';
- var openModals = [];
-
Foundation.libs.reveal = {
name : 'reveal',
- version : '5.5.3',
+ version : '5.5.2',
locked : false,
@@ -1347,7 +1338,7 @@
settings = settings || this.settings;
- if (modal.hasClass('open') && target !== undefined && target.attr('data-reveal-id') == modal.attr('id')) {
+ if (modal.hasClass('open') && target.attr('data-reveal-id') == modal.attr('id')) {
return self.close(modal);
}
@@ -1380,25 +1371,16 @@
};
}
- var openModal = function() {
- if(open_modal.length > 0) {
- if(settings.multiple_opened) {
+ if (typeof ajax_settings === 'undefined' || !ajax_settings.url) {
+ if (open_modal.length > 0) {
+ if (settings.multiple_opened) {
self.to_back(open_modal);
} else {
self.hide(open_modal, settings.css.close);
}
}
- // bl: add the open_modal that isn't already in the background to the openModals array
- if(settings.multiple_opened) {
- openModals.push(modal);
- }
-
- self.show(modal, settings.css.open);
- };
-
- if (typeof ajax_settings === 'undefined' || !ajax_settings.url) {
- openModal();
+ this.show(modal, settings.css.open);
} else {
var old_success = typeof ajax_settings.success !== 'undefined' ? ajax_settings.success : null;
$.extend(ajax_settings, {
@@ -1419,7 +1401,14 @@
self.S(modal).foundation('section', 'reflow');
self.S(modal).children().foundation();
- openModal();
+ if (open_modal.length > 0) {
+ if (settings.multiple_opened) {
+ self.to_back(open_modal);
+ } else {
+ self.hide(open_modal, settings.css.close);
+ }
+ }
+ self.show(modal, settings.css.open);
}
});
@@ -1457,27 +1446,8 @@
}
if (settings.multiple_opened) {
- var isCurrent = modal.is(':not(.toback)');
self.hide(modal, settings.css.close, settings);
- if(isCurrent) {
- // remove the last modal since it is now closed
- openModals.pop();
- } else {
- // if this isn't the current modal, then find it in the array and remove it
- openModals = $.grep(openModals, function(elt) {
- var isThis = elt[0]===modal[0];
- if(isThis) {
- // since it's not currently in the front, put it in the front now that it is hidden
- // so that if it's re-opened, it won't be .toback
- self.to_front(modal);
- }
- return !isThis;
- });
- }
- // finally, show the next modal in the stack, if there is one
- if(openModals.length>0) {
- self.to_front(openModals[openModals.length - 1]);
- }
+ self.to_front($($.makeArray(open_modals).reverse()[1]));
} else {
self.hide(open_modals, settings.css.close, settings);
}
@@ -1550,9 +1520,8 @@
}, settings.animation_speed / 2);
}
- css.top = $(window).scrollTop() + el.data('css-top') + 'px';
-
if (animData.fade) {
+ css.top = $(window).scrollTop() + el.data('css-top') + 'px';
var end_css = {opacity: 1};
return setTimeout(function () {