@@ -11,7 +11,7 @@ var control = (function(){
1111element : helper . e ( ".control-link-add" ) ,
1212type : "button" ,
1313func : function ( ) {
14- link . add ( ) ;
14+ link . render . add ( ) ;
1515}
1616} , {
1717element : helper . e ( ".control-link-edit" ) ,
@@ -26,7 +26,7 @@ var control = (function(){
2626type : "color" ,
2727func : function ( ) {
2828theme . render . accent . color ( ) ;
29- link . clear ( ) ;
29+ link . render . clear ( ) ;
3030link . render . item . all ( ) ;
3131sortable ( ".link-area" ) ;
3232}
@@ -1875,7 +1875,7 @@ var control = (function(){
18751875path : "link.item.order" ,
18761876type : "radio" ,
18771877func : function ( ) {
1878- link . clear ( ) ;
1878+ link . render . clear ( ) ;
18791879link . render . item . all ( ) ;
18801880sortable ( ".link-area" ) ;
18811881}
@@ -1884,7 +1884,7 @@ var control = (function(){
18841884path : "link.item.order" ,
18851885type : "radio" ,
18861886func : function ( ) {
1887- link . clear ( ) ;
1887+ link . render . clear ( ) ;
18881888link . render . item . all ( ) ;
18891889sortable ( ".link-area" ) ;
18901890}
@@ -1923,7 +1923,7 @@ var control = (function(){
19231923path : "link.newTab" ,
19241924type : "checkbox" ,
19251925func : function ( ) {
1926- link . clear ( ) ;
1926+ link . render . clear ( ) ;
19271927link . render . item . all ( ) ;
19281928sortable ( ".link-area" ) ;
19291929}
@@ -1946,7 +1946,7 @@ var control = (function(){
19461946type : "button" ,
19471947func : function ( ) {
19481948bookmarks . sort ( "letter" ) ;
1949- link . clear ( ) ;
1949+ link . render . clear ( ) ;
19501950link . render . item . all ( ) ;
19511951sortable ( ".link-area" ) ;
19521952}
@@ -1955,7 +1955,7 @@ var control = (function(){
19551955type : "button" ,
19561956func : function ( ) {
19571957bookmarks . sort ( "icon" ) ;
1958- link . clear ( ) ;
1958+ link . render . clear ( ) ;
19591959link . render . item . all ( ) ;
19601960sortable ( ".link-area" ) ;
19611961}
@@ -1964,25 +1964,25 @@ var control = (function(){
19641964type : "button" ,
19651965func : function ( ) {
19661966bookmarks . sort ( "name" ) ;
1967- link . clear ( ) ;
1967+ link . render . clear ( ) ;
19681968link . render . item . all ( ) ;
19691969sortable ( ".link-area" ) ;
19701970}
19711971} , {
19721972element : helper . e ( ".control-link-accent-clear" ) ,
19731973type : "button" ,
19741974func : function ( ) {
1975- link . accent . clear ( ) ;
1976- link . clear ( ) ;
1975+ link . mod . accent . clear ( ) ;
1976+ link . render . clear ( ) ;
19771977link . render . item . all ( ) ;
19781978sortable ( ".link-area" ) ;
19791979}
19801980} , {
19811981element : helper . e ( ".control-link-accent-set" ) ,
19821982type : "button" ,
19831983func : function ( ) {
1984- link . accent . set ( ) ;
1985- link . clear ( ) ;
1984+ link . mod . accent . rainbow ( ) ;
1985+ link . render . clear ( ) ;
19861986link . render . item . all ( ) ;
19871987sortable ( ".link-area" ) ;
19881988}
@@ -2065,7 +2065,7 @@ var control = (function(){
20652065func : function ( ) {
20662066theme . render . accent . random ( ) ;
20672067theme . render . accent . color ( ) ;
2068- link . clear ( ) ;
2068+ link . render . clear ( ) ;
20692069link . render . item . all ( ) ;
20702070sortable ( ".link-area" ) ;
20712071}
@@ -2798,7 +2798,6 @@ var control = (function(){
27982798if ( bookmarks . get ( ) . length > 0 ) {
27992799disable . input ( ".control-link-edit" , false ) ;
28002800} else {
2801- disable . input ( ".control-link-edit" , true ) ;
28022801disable . input ( ".control-link-edit" , false ) ;
28032802} ;
28042803} ;
0 commit comments