|
|
@ -1,26 +1,28 @@ |
|
|
|
var row; |
|
|
|
var row1; |
|
|
|
var row2; |
|
|
|
function dragstartFunction(evt){ |
|
|
|
row = evt.target; |
|
|
|
var row3; |
|
|
|
|
|
|
|
function dragstartFunction(evt) { |
|
|
|
row = evt.target; |
|
|
|
} |
|
|
|
|
|
|
|
function dragovertFunction(evt){ |
|
|
|
function dragovertFunction(evt) { |
|
|
|
var global_name = 1 |
|
|
|
var e = evt; |
|
|
|
e.preventDefault(); |
|
|
|
let children= Array.from(e.target.parentNode.parentNode.children); |
|
|
|
e.preventDefault(); |
|
|
|
let children = Array.from(e.target.parentNode.parentNode.children); |
|
|
|
//change count value
|
|
|
|
var count = 1 |
|
|
|
var unchecked_value = 0 |
|
|
|
children.map(h => { |
|
|
|
var html = '<input id='+count+' type="checkbox" class="speccheck grid-row-check pull-left"><span class="spec_check">'+count+'</span>' |
|
|
|
$(h).find('#spec_count').html(html) |
|
|
|
|
|
|
|
|
|
|
|
count +=1 |
|
|
|
var html = '<input id=' + count + ' type="checkbox" class="speccheck grid-row-check pull-left"><span class="spec_check">' + count + '</span>' |
|
|
|
$(h).find('#spec_count').html(html) |
|
|
|
|
|
|
|
|
|
|
|
count += 1 |
|
|
|
}) |
|
|
|
$( document ).ready(function() { |
|
|
|
$(document).ready(function () { |
|
|
|
// cur_frm.doc.__unsaved = 1
|
|
|
|
// $('.title-area').find('.indicator-pill').remove()
|
|
|
|
$('.title-area').find('.indicator-pill').removeClass("hide"); |
|
|
@ -28,38 +30,38 @@ function dragovertFunction(evt){ |
|
|
|
console.log("hiii") |
|
|
|
$('.title-area').find('.indicator-pill').find('span').remove() |
|
|
|
$('.title-area').find('.indicator-pill').append("<span>Not Saved</span>"); |
|
|
|
// $('.specification_bl').find('.spec_custom_save').css("display","inline-block")
|
|
|
|
// $('.specification_bl').find('.spec_custom_save').css("display","inline-block")
|
|
|
|
}) |
|
|
|
//end
|
|
|
|
if(children.indexOf(e.target.parentNode)>children.indexOf(row)){ |
|
|
|
if (children.indexOf(e.target.parentNode) > children.indexOf(row)) { |
|
|
|
e.target.parentNode.after(row); |
|
|
|
} |
|
|
|
else{ |
|
|
|
e.target.parentNode.before(row); |
|
|
|
else { |
|
|
|
e.target.parentNode.before(row); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function dragstartFunction_1(evt){ |
|
|
|
row1= evt.target; |
|
|
|
function dragstartFunction_1(evt) { |
|
|
|
row1 = evt.target; |
|
|
|
} |
|
|
|
|
|
|
|
function dragovertFunction_1(evt){ |
|
|
|
function dragovertFunction_1(evt) { |
|
|
|
var global_name = 1 |
|
|
|
var e = evt; |
|
|
|
e.preventDefault(); |
|
|
|
let children= Array.from(e.target.parentNode.parentNode.children); |
|
|
|
e.preventDefault(); |
|
|
|
let children = Array.from(e.target.parentNode.parentNode.children); |
|
|
|
//change count value
|
|
|
|
var count = 1 |
|
|
|
var unchecked_value = 0 |
|
|
|
children.map(h => { |
|
|
|
var html = '<input id='+count+' type="checkbox" class="imagecheck grid-row-check pull-left"><span class="image_check">'+count+'</span>' |
|
|
|
$(h).find('#image_count').html(html) |
|
|
|
|
|
|
|
|
|
|
|
count +=1 |
|
|
|
var html = '<input id=' + count + ' type="checkbox" class="imagecheck grid-row-check pull-left"><span class="image_check">' + count + '</span>' |
|
|
|
$(h).find('#image_count').html(html) |
|
|
|
|
|
|
|
|
|
|
|
count += 1 |
|
|
|
}) |
|
|
|
$( document ).ready(function() { |
|
|
|
$(document).ready(function () { |
|
|
|
// cur_frm.doc.__unsaved = 1
|
|
|
|
// $('.title-area').find('.indicator-pill').remove()
|
|
|
|
$('.title-area').find('.indicator-pill').removeClass("hide"); |
|
|
@ -69,36 +71,36 @@ function dragovertFunction_1(evt){ |
|
|
|
// $('.feature_imgbl').find('.image_custom_save').css("display","inline-block")
|
|
|
|
}) |
|
|
|
//end
|
|
|
|
if(children.indexOf(e.target.parentNode)>children.indexOf(row1)){ |
|
|
|
if (children.indexOf(e.target.parentNode) > children.indexOf(row1)) { |
|
|
|
e.target.parentNode.after(row1); |
|
|
|
} |
|
|
|
else{ |
|
|
|
e.target.parentNode.before(row1); |
|
|
|
else { |
|
|
|
e.target.parentNode.before(row1); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function dragstartFunction_2(evt){ |
|
|
|
row2 = evt.target; |
|
|
|
function dragstartFunction_2(evt) { |
|
|
|
row2 = evt.target; |
|
|
|
} |
|
|
|
|
|
|
|
function dragovertFunction_2(evt){ |
|
|
|
function dragovertFunction_2(evt) { |
|
|
|
var global_name = 1 |
|
|
|
var e = evt; |
|
|
|
e.preventDefault(); |
|
|
|
let children= Array.from(e.target.parentNode.parentNode.children); |
|
|
|
e.preventDefault(); |
|
|
|
let children = Array.from(e.target.parentNode.parentNode.children); |
|
|
|
//change count value
|
|
|
|
var count = 1 |
|
|
|
var unchecked_value = 0 |
|
|
|
children.map(h => { |
|
|
|
var html = '<input id='+count+' type="checkbox" class="contentcheck grid-row-check pull-left"><span class="content_check">'+count+'</span>' |
|
|
|
$(h).find('#cont_count').html(html) |
|
|
|
|
|
|
|
|
|
|
|
count +=1 |
|
|
|
var html = '<input id=' + count + ' type="checkbox" class="contentcheck grid-row-check pull-left"><span class="content_check">' + count + '</span>' |
|
|
|
$(h).find('#cont_count').html(html) |
|
|
|
|
|
|
|
|
|
|
|
count += 1 |
|
|
|
}) |
|
|
|
$( document ).ready(function() { |
|
|
|
$(document).ready(function () { |
|
|
|
// cur_frm.doc.__unsaved = 1
|
|
|
|
// $('.title-area').find('.indicator-pill').remove()
|
|
|
|
$('.title-area').find('.indicator-pill').removeClass("hide"); |
|
|
@ -108,10 +110,49 @@ function dragovertFunction_2(evt){ |
|
|
|
// $('.feature_contbl').find('.content_custom_save').css("display","inline-block")
|
|
|
|
}) |
|
|
|
//end
|
|
|
|
if(children.indexOf(e.target.parentNode)>children.indexOf(row2)){ |
|
|
|
if (children.indexOf(e.target.parentNode) > children.indexOf(row2)) { |
|
|
|
e.target.parentNode.after(row2); |
|
|
|
} |
|
|
|
else{ |
|
|
|
e.target.parentNode.before(row2); |
|
|
|
else { |
|
|
|
e.target.parentNode.before(row2); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function dragstartFunctionQwik(evt) { |
|
|
|
row3 = evt.target; |
|
|
|
} |
|
|
|
function dragovertFunctionQwik(evt) { |
|
|
|
var global_name = 1 |
|
|
|
var e = evt; |
|
|
|
e.preventDefault(); |
|
|
|
let children = Array.from(e.target.parentNode.parentNode.children); |
|
|
|
//change count value
|
|
|
|
var count = 1 |
|
|
|
var unchecked_value = 0 |
|
|
|
children.map(h => { |
|
|
|
var html = '<input id=' + count + ' type="checkbox" class="qwikcheck grid-row-check pull-left"><span class="qwik_check">' + count + '</span>' |
|
|
|
$(h).find('#qwik_count').html(html) |
|
|
|
|
|
|
|
|
|
|
|
count += 1 |
|
|
|
}) |
|
|
|
$(document).ready(function () { |
|
|
|
// cur_frm.doc.__unsaved = 1
|
|
|
|
// $('.title-area').find('.indicator-pill').remove()
|
|
|
|
$('.title-area').find('.indicator-pill').removeClass("hide"); |
|
|
|
$('.title-area').find('.indicator-pill').addClass("orange"); |
|
|
|
console.log("hiii") |
|
|
|
$('.title-area').find('.indicator-pill').find('span').remove() |
|
|
|
$('.title-area').find('.indicator-pill').append("<span>Not Saved</span>"); |
|
|
|
// $('.specification_bl').find('.spec_custom_save').css("display","inline-block")
|
|
|
|
}) |
|
|
|
//end
|
|
|
|
if (children.indexOf(e.target.parentNode) > children.indexOf(row)) { |
|
|
|
e.target.parentNode.after(row); |
|
|
|
} |
|
|
|
else { |
|
|
|
e.target.parentNode.before(row); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|