Browse Source

Comment formatting, rebuild

pull/1550/head
jlukic 10 years ago
parent
commit
f84759d0da
6 changed files with 68 additions and 96 deletions
  1. 4
      RELEASE-NOTES.md
  2. 63
      dist/components/tab.js
  3. 12
      dist/components/tab.min.js
  4. 63
      dist/semantic.js
  5. 2
      dist/semantic.min.js
  6. 20
      src/definitions/modules/dropdown.js

4
RELEASE-NOTES.md

@ -9,13 +9,17 @@
**Enhancements*
- **Dropdown** - New setting ``allowCategorySelection`` lets menu items with sub menus be selected. Added example in docs.
- **Label** - ``ui ribbon label`` can now appear on the right side of content when specifying ``ui right ribbon label``
- **Checkbox** - Checkboxes now can handle labels with multiple lines of text
- **Progress** - Progress bars now display all intermediary percentage values when animating. Improved performance when progress bar is rapidly updated.
- **Popup** - Popup now uses the new property ``min-width: max-content`` to allow for better display with ``inline`` in some circumstances where it escapes parent element.
- **Table** - Table now has coupling with image to make sure size is preserved correctly with table sizing when used inside a table cell.
**Bugs**
- **Form** - Fixed (x) wide field not having correct bottom field margin when in ``fields`` group on tablet or mobile
- **Tab** - Calls to global ``$.tab()`` would not pass arguments correctly
- **Dropdown/Search** - Fixed issues with ``ui search`` and ``ui search dropdown`` using ``RegExp test`` which [advances pointer on match](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test) causing results to display incorrectly
- **Form** - ``ui input`` now receives the same formatting as a normal input inside an ``inline field``
- **Input** - Fixed bug when ``ui action input`` uses a ``ui icon button``, button was receiving `i.icon` formatting.
- **Popup** - Popup destroy will now also destroy any unfired timers (show/hide delay)
- **Popup** - Popup now moves to the same offset context to avoid positioning errors when using a named pre-existing popup.

63
dist/components/tab.js

@ -13,7 +13,7 @@
"use strict";
$.tab = $.fn.tab = function(parameters) {
$.fn.tab = function(parameters) {
var
// use window context if none specified
@ -37,6 +37,8 @@ $.tab = $.fn.tab = function(parameters) {
returnedValue
;
console.log(arguments);
$allModules
.each(function() {
@ -158,6 +160,7 @@ $.tab = $.fn.tab = function(parameters) {
instantiate: function () {
module.verbose('Storing instance of module', module);
instance = module;
$module
.data(moduleNamespace, module)
;
@ -313,7 +316,7 @@ $.tab = $.fn.tab = function(parameters) {
$.proxy(settings.onTabLoad, $tab)(currentPath, parameterArray, historyEvent);
}
}
else if(tabPath.search('/') == -1) {
else if(tabPath.search('/') == -1 && tabPath !== '') {
// look for in page anchor
$anchor = $('#' + tabPath + ', a[name="' + tabPath + '"]'),
currentPath = $anchor.closest('[data-tab]').data('tab');
@ -697,7 +700,6 @@ $.tab = $.fn.tab = function(parameters) {
return found;
}
};
if(methodInvoked) {
if(instance === undefined) {
module.initialize();
@ -723,51 +725,38 @@ $.tab = $.fn.tab = function(parameters) {
};
// shortcut for tabbed content with no defined navigation
$.tab = function(settings) {
$(window).tab(settings);
$.tab = function() {
$(window).tab.apply(this, arguments);
};
$.fn.tab.settings = {
name : 'Tab',
namespace : 'tab',
debug : false,
verbose : true,
performance : true,
// uses pjax style endpoints fetching content from same url with remote-content headers
auto : false,
history : false,
historyType : 'hash',
path : false,
context : false,
childrenOnly : false,
// max depth a tab can be nested
maxDepth : 25,
// dont load content on first load
ignoreFirstLoad : false,
name : 'Tab',
namespace : 'tab',
// load tab content new every tab click
alwaysRefresh : false,
debug : false,
verbose : true,
performance : true,
// cache the content requests to pull locally
cache : true,
auto : false, // uses pjax style endpoints fetching content from same url with remote-content headers
history : false, // use browser history
historyType : 'hash', // #/ or html5 state
path : false, // base path of url
// settings for api call
apiSettings : false,
context : false, // specify a context that tabs must appear inside
childrenOnly : false, // use only tabs that are children of context
maxDepth : 25, // max depth a tab can be nested
// only called first time a tab's content is loaded (when remote source)
onTabInit : function(tabPath, parameterArray, historyEvent) {},
alwaysRefresh : false, // load tab content new every tab click
cache : true, // cache the content requests to pull locally
ignoreFirstLoad : false, // don't load remote content on first load
apiSettings : false, // settings for api call
// called on every load
onTabLoad : function(tabPath, parameterArray, historyEvent) {},
onTabInit : function(tabPath, parameterArray, historyEvent) {}, // called first time loaded
onTabLoad : function(tabPath, parameterArray, historyEvent) {}, // called on every load
templates : {
determineTitle: function(tabArray) {}
determineTitle: function(tabArray) {} // returns page title for path
},
error: {

12
dist/components/tab.min.js
File diff suppressed because it is too large
View File

63
dist/semantic.js

@ -11838,7 +11838,7 @@ $.fn.sticky.settings = {
"use strict";
$.tab = $.fn.tab = function(parameters) {
$.fn.tab = function(parameters) {
var
// use window context if none specified
@ -11862,6 +11862,8 @@ $.tab = $.fn.tab = function(parameters) {
returnedValue
;
console.log(arguments);
$allModules
.each(function() {
@ -11983,6 +11985,7 @@ $.tab = $.fn.tab = function(parameters) {
instantiate: function () {
module.verbose('Storing instance of module', module);
instance = module;
$module
.data(moduleNamespace, module)
;
@ -12138,7 +12141,7 @@ $.tab = $.fn.tab = function(parameters) {
$.proxy(settings.onTabLoad, $tab)(currentPath, parameterArray, historyEvent);
}
}
else if(tabPath.search('/') == -1) {
else if(tabPath.search('/') == -1 && tabPath !== '') {
// look for in page anchor
$anchor = $('#' + tabPath + ', a[name="' + tabPath + '"]'),
currentPath = $anchor.closest('[data-tab]').data('tab');
@ -12522,7 +12525,6 @@ $.tab = $.fn.tab = function(parameters) {
return found;
}
};
if(methodInvoked) {
if(instance === undefined) {
module.initialize();
@ -12548,51 +12550,38 @@ $.tab = $.fn.tab = function(parameters) {
};
// shortcut for tabbed content with no defined navigation
$.tab = function(settings) {
$(window).tab(settings);
$.tab = function() {
$(window).tab.apply(this, arguments);
};
$.fn.tab.settings = {
name : 'Tab',
namespace : 'tab',
debug : false,
verbose : true,
performance : true,
name : 'Tab',
namespace : 'tab',
// uses pjax style endpoints fetching content from same url with remote-content headers
auto : false,
history : false,
historyType : 'hash',
path : false,
context : false,
childrenOnly : false,
// max depth a tab can be nested
maxDepth : 25,
// dont load content on first load
ignoreFirstLoad : false,
// load tab content new every tab click
alwaysRefresh : false,
debug : false,
verbose : true,
performance : true,
// cache the content requests to pull locally
cache : true,
auto : false, // uses pjax style endpoints fetching content from same url with remote-content headers
history : false, // use browser history
historyType : 'hash', // #/ or html5 state
path : false, // base path of url
// settings for api call
apiSettings : false,
context : false, // specify a context that tabs must appear inside
childrenOnly : false, // use only tabs that are children of context
maxDepth : 25, // max depth a tab can be nested
// only called first time a tab's content is loaded (when remote source)
onTabInit : function(tabPath, parameterArray, historyEvent) {},
alwaysRefresh : false, // load tab content new every tab click
cache : true, // cache the content requests to pull locally
ignoreFirstLoad : false, // don't load remote content on first load
apiSettings : false, // settings for api call
// called on every load
onTabLoad : function(tabPath, parameterArray, historyEvent) {},
onTabInit : function(tabPath, parameterArray, historyEvent) {}, // called first time loaded
onTabLoad : function(tabPath, parameterArray, historyEvent) {}, // called on every load
templates : {
determineTitle: function(tabArray) {}
determineTitle: function(tabArray) {} // returns page title for path
},
error: {

2
dist/semantic.min.js
File diff suppressed because it is too large
View File

20
src/definitions/modules/dropdown.js

@ -1496,21 +1496,21 @@ $.fn.dropdown = function(parameters) {
$.fn.dropdown.settings = {
debug : false,
verbose : true,
performance : true,
debug : false,
verbose : true,
performance : true,
on : 'click',
action : 'activate',
on : 'click',
action : 'activate',
allowTab : true,
fullTextSearch : false,
preserveHTML : true,
sortSelect : false,
allowTab : true,
fullTextSearch : false,
preserveHTML : true,
sortSelect : false,
allowCategorySelection : false,
delay : {
delay : {
hide : 300,
show : 200,
search : 50,

Loading…
Cancel
Save