Skip to content

Instantly share code, notes, and snippets.

@icoxfog417
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icoxfog417/8700879 to your computer and use it in GitHub Desktop.
Save icoxfog417/8700879 to your computer and use it in GitHub Desktop.
(function () {
"use strict";
kintone.events.on(['app.record.detail.show','app.record.create.show','app.record.edit.show'], function(event){
var toggle = document.getElementById("goog-splitpane-handle-gaia"); //コメント/変更履歴欄を閉じる
if(toggle == null){
return false;
}else{
if(toggle.getAttribute("class").indexOf("contents-resizer-handle-open-gaia") > -1){
toggle.click();
}
if(toggle.getAttribute("class").indexOf("contents-resizer-handle-close-gaia") > -1){
toggle.click();
}
}
});
})();
@icoxfog417
Copy link
Author

そのうち対応されると思われるが、コメント/変更履歴欄を常にcloseにするJavaScriptカスタマイズ。
2014/1現在だと、closeしたまま編集画面に遷移するとボタンはcloseだがコメント/履歴欄は開いているという状態になるので、上記のような対応が必要

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment