Skip to content

Commit d5aef5c

Browse files
committed
Obsolute code
Addditional code related to this function
1 parent 7f8b228 commit d5aef5c

File tree

6 files changed

+0
-348
lines changed

6 files changed

+0
-348
lines changed

bin/v-add-user-favourites

Lines changed: 0 additions & 125 deletions
This file was deleted.

bin/v-delete-user-favourites

Lines changed: 0 additions & 128 deletions
This file was deleted.

web/add/favorite/index.php

Lines changed: 0 additions & 23 deletions
This file was deleted.

web/delete/favorite/index.php

Lines changed: 0 additions & 15 deletions
This file was deleted.

web/js/init.js

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -130,39 +130,6 @@ $(document).ready(function(){
130130
}).appendTo(".l-center.units");
131131
});
132132

133-
134-
135-
// STARS
136-
137-
$('.l-unit .l-icon-star').click(function(){
138-
var l_unit = $(this).parents('.l-unit');
139-
140-
if(l_unit.hasClass('l-unit--starred')){
141-
// removing star
142-
143-
$.ajax({
144-
method: "POST",
145-
url: "/delete/favorite/index.php",
146-
data: { v_section: l_unit.attr('v_section'), v_unit_id: l_unit.attr('v_unit_id') }
147-
});
148-
149-
l_unit.attr({'sort-star': 0});
150-
l_unit.removeClass('l-unit--starred');
151-
}
152-
else{
153-
$.ajax({
154-
method: "POST",
155-
url: "/add/favorite/index.php",
156-
data: { v_unit_id: l_unit.attr('v_unit_id'), v_section: l_unit.attr('v_section') }
157-
});
158-
159-
l_unit.attr({'sort-star': 1});
160-
l_unit.addClass('l-unit--starred');
161-
}
162-
});
163-
164-
165-
166133
// Shortcuts
167134

168135
shortcut.add("Ctrl+Enter", function(){

web/list/favorites/index.php

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)