Skip to content
Browse files

remove options

  • Loading branch information...
1 parent 3a2bbd4 commit c541d3b7db13d7b74d805e9bca3e1ee838f61230 @Eyjafjallajokull committed
Showing with 3 additions and 37 deletions.
  1. +0 −16 public/index.html
  2. +3 −21 public/main.js
View
16 public/index.html
@@ -29,21 +29,5 @@
</head>
<body>
<div id="widgetsWrap"></div>
-
- <div id="optionsWrap">
- <label for="optionColumns">Width</label>
- <select id="optionColumns">
- <option>0</option>
- <option>1</option>
- <option>2</option>
- <option>3</option>
- </select>
- <br>
- <label for="optionSort">Sort by</label>
- <select id="optionSort">
- <option>size</option>
- <option>configOrder</option>
- </select>
- </div>
</body>
</html>
View
24 public/main.js
@@ -32,27 +32,9 @@ var WidgetManager = {
configOrder : function( $elem ) {
return parseInt($elem.attr('id').substr(6));
}
- }
- });
-
- $('#optionColumns').change(function(){
- var v = $(this).val();
- $.cookies.set('optionColumns', v);
- console.log(v)
- v *= 100;
-
- $('#widgetsWrap').css('margin','0 '+v+'px');
- $(window).resize(); // force isotope refresh
- });
- $('#optionSort').change(function(){
- var v = $(this).val();
- $.cookies.set('optionSort', v);
- console.log(v)
-
- $('#widgetsWrap').isotope({
- sortBy : v,
- sortAscending : 'asc'});
- $('#widgetsWrap').isotope( 'reLayout' );
+ },
+ sortBy : 'configOrder',
+ sortAscending : 'asc'
});
},

0 comments on commit c541d3b

Please sign in to comment.
Something went wrong with that request. Please try again.