Browse Source

Organizing some settings objects

pull/1177/head
jlukic 10 years ago
parent
commit
ef0945fe4e
2 changed files with 14 additions and 11 deletions
  1. 2
      src/definitions/modules/dimmer.js
  2. 23
      src/definitions/modules/dropdown.js

2
src/definitions/modules/dimmer.js

@ -547,10 +547,10 @@ $.fn.dimmer.settings = {
verbose : true, verbose : true,
performance : true, performance : true,
closable : true,
transition : 'fade', transition : 'fade',
useCSS : true, useCSS : true,
on : false, on : false,
closable : true,
duration : { duration : {
show : 500, show : 500,

23
src/definitions/modules/dropdown.js

@ -1276,15 +1276,7 @@ $.fn.dropdown = function(parameters) {
$.fn.dropdown.settings = { $.fn.dropdown.settings = {
name : 'Dropdown',
namespace : 'dropdown',
debug : false,
verbose : true,
performance : true,
type : false,
/* Behavior */
on : 'click', on : 'click',
action : 'activate', action : 'activate',
@ -1301,10 +1293,19 @@ $.fn.dropdown.settings = {
transition : 'slide down', transition : 'slide down',
duration : 250, duration : 250,
/* Callbacks */
onChange : function(value, text){}, onChange : function(value, text){},
onShow : function(){}, onShow : function(){},
onHide : function(){}, onHide : function(){},
/* Component */
name : 'Dropdown',
namespace : 'dropdown',
debug : false,
verbose : true,
performance : true,
error : { error : {
action : 'You called a dropdown action that was not defined', action : 'You called a dropdown action that was not defined',
method : 'The method you called is not defined.', method : 'The method you called is not defined.',
@ -1342,6 +1343,7 @@ $.fn.dropdown.settings = {
}; };
/* Templates */
$.fn.dropdown.settings.templates = { $.fn.dropdown.settings.templates = {
menu: function(select) { menu: function(select) {
var var
@ -1386,7 +1388,8 @@ $.fn.dropdown.settings.templates = {
} }
}; };
// Adds easing
/* Dependencies */
$.extend( $.easing, { $.extend( $.easing, {
easeOutQuad: function (x, t, b, c, d) { easeOutQuad: function (x, t, b, c, d) {
return -c *(t/=d)*(t-2) + b; return -c *(t/=d)*(t-2) + b;

Loading…
Cancel
Save