mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
multiple name servers
This commit is contained in:
parent
808d2c3849
commit
99a403a2ef
7 changed files with 318 additions and 47 deletions
|
@ -115,14 +115,25 @@
|
|||
|
||||
if(l_unit.hasClass('l-unit--starred')){
|
||||
// removing star
|
||||
$.removeCookie(l_unit.attr('uniq-id'));
|
||||
l_unit.removeClass('l-unit--starred');
|
||||
|
||||
$.ajax({
|
||||
method: "POST",
|
||||
url: "/delete/favorite/index.php",
|
||||
data: { v_section: l_unit.attr('v_section'), v_unit_id: l_unit.attr('v_unit_id') }
|
||||
});
|
||||
|
||||
l_unit.attr({'sort-star': 0});
|
||||
l_unit.removeClass('l-unit--starred');
|
||||
}
|
||||
else{
|
||||
$.cookie(l_unit.attr('uniq-id'), 1, {expires: 3650, path: '/'});
|
||||
l_unit.addClass('l-unit--starred');
|
||||
$.ajax({
|
||||
method: "POST",
|
||||
url: "/add/favorite/index.php",
|
||||
data: { v_unit_id: l_unit.attr('v_unit_id'), v_section: l_unit.attr('v_section') }
|
||||
});
|
||||
|
||||
l_unit.attr({'sort-star': 1});
|
||||
l_unit.addClass('l-unit--starred');
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -456,7 +467,8 @@
|
|||
|
||||
VE.core.register();
|
||||
if (location.href.search(/list/) != -1) {
|
||||
var shift_select_ref = $('body').finderSelect({children: '.l-unit',
|
||||
var shift_select_ref = $('body').finderSelect({
|
||||
children: '.l-unit',
|
||||
'onFinish': function(evt) {
|
||||
var ref = $(evt.target);
|
||||
$('.l-content').find('.l-unit .ch-toggle').attr('checked', false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue