Download:
child 10:c770f7dc8d69
parent 8:216800922816
9:37c62f83c546
Anton Shestakov <engored@ya.ru>, Sun, 17 Nov 2013 14:59:57 +0900
Set classes via lensy defaults.

2 файлов изменено, 10 вставок(+), 4 удалений(-) [+]
demo-bootstrap.html file | annotate | diff | comparison | revisions
demo-foundation4.html file | annotate | diff | comparison | revisions
--- a/demo-bootstrap.html Sun Nov 17 14:58:18 2013 +0900
+++ b/demo-bootstrap.html Sun Nov 17 14:59:57 2013 +0900
@@ -93,12 +93,15 @@
</form>
<script id="lensy-js">
$(function() {
- $('select').lensy({
+ $.extend($.fn.lensy.defaults, {
modalClass: 'lensy-modal modal',
containerClass: 'inline',
widgetClass: 'lensy-widget inline well well-small',
closeButtonClass: 'btn',
- itemActiveClass: 'thumbnail',
+ itemActiveClass: 'thumbnail'
+ });
+
+ $('select').lensy({
itemFn: function(value, text) {
var colorbox = $('<div>').css({width: '64px', height: '64px', background: text});
return $('<div>')
--- a/demo-foundation4.html Sun Nov 17 14:58:18 2013 +0900
+++ b/demo-foundation4.html Sun Nov 17 14:59:57 2013 +0900
@@ -85,12 +85,15 @@
</form>
<script id="lensy-js">
$(function() {
- $('select').lensy({
+ $.extend($.fn.lensy.defaults, {
modalClass: 'lensy-modal reveal-modal open',
containerClass: 'inline-list',
widgetClass: 'lensy-widget inline-list',
closeButtonClass: 'button',
- itemActiveClass: 'th',
+ itemActiveClass: 'th'
+ });
+
+ $('select').lensy({
itemFn: function(value, text) {
var colorbox = $('<div>').css({width: '64px', height: '64px', background: text});
return $('<div>')