Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to prevent edit in the view using jsinclude?

Jee young-hoon May 16, 2018

how can I prevent edit in the view using jsinclude?

even if i delete editable-field class, it is created again.

in addition, i deleted editable-field class -> click to open edit issue.

i'm sorry for not explaining well.

help me plz..

1 answer

1 accepted

0 votes
Answer accepted
Jee young-hoon May 16, 2018

I solved it using this.

 

var block_edit = setInterval(function() {
   remove('#customfield_10301-val');
},500);

function remove(field) {
   $(field).removeClass('inactive');
   $(field).removeClass('editable-field');
   $(field).find('span.aui-iconfont-edit').remove();
}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events