TagSpaces is an offline, open source, document manager with tagging support
moving some js code to html
Ilian41a9d0e9b02f
diff --git a/data/js/fileopener.js b/data/js/fileopener.jsindex 39aeb4586..524cdb862 100644--- a/data/js/fileopener.js+++ b/data/js/fileopener.js@@ -395,6 +395,7 @@ define(function(require, exports, module) {};}+ // TODO Make file properties dialog accessible from corefunction showFilePropertiesDialog() {require(["text!templates/FilePropertiesDialog.html",@@ -402,9 +403,6 @@ define(function(require, exports, module) {if($("#dialogFileProperties").length < 1) {var uiTemplate = Handlebars.compile( uiTPL );$('body').append(uiTemplate());- $('#filePathProperty').attr("readonly", true);- $('#fileSizeProperty').attr("readonly", true);- $('#fileLMDTProperty').attr("readonly", true);}$("#filePathProperty").val(_openedFileProperties.path);$("#fileSizeProperty").val(_openedFileProperties.size);diff --git a/data/templates/FilePropertiesDialog.html b/data/templates/FilePropertiesDialog.htmlindex f1e84f4ae..690dfd493 100644--- a/data/templates/FilePropertiesDialog.html+++ b/data/templates/FilePropertiesDialog.html@@ -10,15 +10,15 @@<div class="modal-body form"><div class="form-group"><label class="control-label" for="filePathProperty">File Path</label>- <input class="form-control uneditable-input" type="text" name="filePathProperty" id="filePathProperty" />+ <input class="form-control uneditable-input" readonly="true" type="text" name="filePathProperty" id="filePathProperty" /></div><div class="form-group"><label class="control-label" for="fileSizeProperty">File Size in Bytes</label>- <input class="form-control uneditable-input" type="text" name="fileSizeProperty" id="fileSizeProperty" />+ <input class="form-control uneditable-input" readonly="true" type="text" name="fileSizeProperty" id="fileSizeProperty" /></div><div class="form-group"><label class="control-label" for="fileLMDTProperty">File Last Modified Datetime</label>- <input class="form-control uneditable-input" type="text" name="fileLMDTProperty" id="fileLMDTProperty" />+ <input class="form-control uneditable-input" readonly="true" type="text" name="fileLMDTProperty" id="fileLMDTProperty" /></div></div><div class="modal-footer">