Skip to content

TagSpaces is an offline, open source, document manager with tagging support

add datetimepicker and moment library

kristiyanddfda4690e15fa
diff --git a/bower.json b/bower.json
index 205d94b7b..b83f956d2 100644
--- a/bower.json
+++ b/bower.json
@@ -31,8 +31,9 @@
"underscore": "https://raw.githubusercontent.com/jashkenas/underscore/1.8.3/underscore.js",
"marked": "~0.3.5",
"flatpickr-calendar": "~1.8.7",
- "leaflet.locatecontrol":"~0.52.0",
- "extCommon": "https://github.com/tagspaces/extCommons.git"
+ "leaflet.locatecontrol": "~0.52.0",
+ "extCommon": "https://github.com/tagspaces/extCommons.git",
+ "eonasdan-bootstrap-datetimepicker": "^4.17.37"
},
"private": true,
"resolutions": {
diff --git a/data/assets/core.css b/data/assets/core.css
index 70c0427b3..16d02f30e 100644
--- a/data/assets/core.css
+++ b/data/assets/core.css
@@ -2,456 +2,455 @@
* is governed by a AGPL3 license that can be found in the LICENSE file. */
.appbody {
- position: fixed;
- top: 0;
- left: 0;
- right:0;
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
}
#logo {
- padding: 0;
- font-size: 1.5em;
- margin: 3px;
- color: #616577;
- font-weight: bold;
- padding-left: 32px;
- padding-top: 4px;
- background: url("icon.svg") no-repeat left center;
- background-size: 28px 28px;
- background-position: 0 0;
- height: 31px;
- display: inline-block;
+ padding: 0;
+ font-size: 1.5em;
+ margin: 3px;
+ color: #616577;
+ font-weight: bold;
+ padding-left: 32px;
+ padding-top: 4px;
+ background: url("icon.svg") no-repeat left center;
+ background-size: 28px 28px;
+ background-position: 0 0;
+ height: 31px;
+ display: inline-block;
}
#appVersion {
- font-size: 1.3em;
- color: #616577;
- margin-left: -7px;
+ font-size: 1.3em;
+ color: #616577;
+ margin-left: -7px;
}
#startNewInstanceBack {
- cursor: pointer;
+ cursor: pointer;
}
#currentLocation {
- padding: 0;
- font-size: 1.3em;
- color: lightgray;
- display: inline-block;
- margin: 6px;
+ padding: 0;
+ font-size: 1.3em;
+ color: lightgray;
+ display: inline-block;
+ margin: 6px;
}
#statusBar {
- margin-top: 12px;
- font-size: 14px;
- font-size: 12px;
- text-align: center;
+ margin-top: 12px;
+ font-size: 14px;
+ font-size: 12px;
+ text-align: center;
}
#fileDropArea {
- width: 100%;
- height: 100%;
- background-color: rgba(29, 209, 159, 0.72);
- z-index: 1001;
- position: absolute;
- top: 80px;
- left: 0;
+ width: 100%;
+ height: 100%;
+ background-color: rgba(29, 209, 159, 0.72);
+ z-index: 1001;
+ position: absolute;
+ top: 80px;
+ left: 0;
}
#fileDropExplanation {
- top:45%;
- width: 100%;
- text-align: center;
- position:absolute;
- color: white;
- font-size: 20px;
+ top: 45%;
+ width: 100%;
+ text-align: center;
+ position: absolute;
+ color: white;
+ font-size: 20px;
}
#iframeViewer {
- width: 100%;
- border-width: 0;
+ width: 100%;
+ border-width: 0;
}
-#fileMenuButton, #fileMenuButton:active, #fileMenuButton:focus, #fileMenuButton:hover {
- margin-right: 4px;
- margin-top: 4px;
- height: 28px;
- color: white;
- border-radius: 3px;
- background-color: #515151;
- opacity: 0.8 !important;
- text-transform: uppercase;
- font-size: 12px;
- padding: 4px;
+#fileMenuButton, #fileMenuButton:active, #fileMenuButton:focus, #fileMenuButton:hover {
+ margin-right: 4px;
+ margin-top: 4px;
+ height: 28px;
+ color: white;
+ border-radius: 3px;
+ background-color: #515151;
+ opacity: 0.8 !important;
+ text-transform: uppercase;
+ font-size: 12px;
+ padding: 4px;
}
-#fileMenuButton:hover {
- opacity: 1 !important;
+#fileMenuButton:hover {
+ opacity: 1 !important;
}
#fileTitle {
- margin-top: 5px;
- height: 30px;
- padding-right: 3px;
- padding-left: 3px;
- font-size: 16px;
- font-weight: 300;
- border: 0;
- background-color: transparent;
- color: #333333;
- /*white-space: nowrap;*/
- overflow: hidden;
+ margin-top: 5px;
+ height: 30px;
+ padding-right: 3px;
+ padding-left: 3px;
+ font-size: 16px;
+ font-weight: 300;
+ border: 0;
+ background-color: transparent;
+ color: #333333;
+ /*white-space: nowrap;*/
+ overflow: hidden;
}
#fileTitle:hover {
- text-decoration: none;
- background-color: rgba(97, 255, 0, 0.23);
+ text-decoration: none;
+ background-color: rgba(97, 255, 0, 0.23);
}
#viewsRadio {
- margin: 3px 3px 3px 0;
- display: inline-block;
+ margin: 3px 3px 3px 0;
+ display: inline-block;
}
#viewsRadio input {
- display: inline-block;
+ display: inline-block;
}
#fileSortRadio {
- display: inline-block;
+ display: inline-block;
}
#fileSortRadio input {
- display: inline-block;
+ display: inline-block;
}
#dialogAbout {
- width: 600px;
+ width: 600px;
}
#container {
- height: 100%;
- margin: 0 auto;
- width: 100%;
- min-width: 700px;
+ height: 100%;
+ margin: 0 auto;
+ width: 100%;
+ min-width: 700px;
}
/* Layout */
-#locationContent, #tagGroupsContent{
- background-color: transparent;
+#locationContent, #tagGroupsContent {
+ background-color: transparent;
}
#tagGroupsContent {
- min-height: 50px;
+ min-height: 50px;
}
#clearFilterButton {
- padding-left: 8px;
- padding-right: 10px;
+ padding-left: 8px;
+ padding-right: 10px;
}
#searchButton {
- padding-left: 10px;
- padding-right: 10px;
+ padding-left: 10px;
+ padding-right: 10px;
}
#clearSearchButton {
- padding-left: 10px;
- padding-right: 10px;
+ padding-left: 10px;
+ padding-right: 10px;
}
#showSearchOptionsButton {
- padding-left: 10px;
- padding-right: 10px;
+ padding-left: 10px;
+ padding-right: 10px;
}
#searchToolbar {
- border-radius: 4px;
- width: 300px;
- background-color: #DBDBDB;
- display: none;
- margin-left: 4px;
- margin-right: 4px;
- margin-bottom: 4px;
- z-index: 1;
- box-shadow: -20px 0px 28px -7px rgba(244, 244, 244, 1);
+ border-radius: 4px;
+ width: 300px;
+ background-color: #DBDBDB;
+ display: none;
+ margin-left: 4px;
+ margin-right: 4px;
+ margin-bottom: 4px;
+ z-index: 1;
+ box-shadow: -20px 0px 28px -7px rgba(244, 244, 244, 1);
}
#searchBox {
- margin-top: 4px;
- border: 0;
- background-color: transparent;
- border-bottom: 0;
- font-size: 14px;
- min-width: 30px;
- width: 100%;
+ margin-top: 4px;
+ border: 0;
+ background-color: transparent;
+ border-bottom: 0;
+ font-size: 14px;
+ min-width: 30px;
+ width: 100%;
}
.searchFormElements {
- font-size: 14px !important;
+ font-size: 14px !important;
}
#tagsContainer {
- width: 100%;
- min-height: 40px;
- margin: 0;
+ width: 100%;
+ min-height: 40px;
+ margin: 0;
}
#viewToolbars {
- min-height: 40px;
+ min-height: 40px;
}
#viewContainers {
- background-color: white;
- padding: 0;
+ background-color: white;
+ padding: 0;
}
#viewer {
- background-color: white;
- width: 100%;
- /*height: 100%;*/
+ background-color: white;
+ width: 100%;
+ /*height: 100%;*/
}
-
/* Directory Navigation */
-.dirButton {
- font-size: 13px;
- background-color: #E5E5E5;
- color: #444444;
- background-image: none;
- margin: 1px;
- text-align: left;
- text-transform: none;
- flex: 1 1 auto;
- -webkit-flex: 1 1 auto;
- -ms-flex: 1 1 auto;
+.dirButton {
+ font-size: 13px;
+ background-color: #E5E5E5;
+ color: #444444;
+ background-image: none;
+ margin: 1px;
+ text-align: left;
+ text-transform: none;
+ flex: 1 1 auto;
+ -webkit-flex: 1 1 auto;
+ -ms-flex: 1 1 auto;
}
.dirButton div {
- max-width: 265px;
- text-overflow: ellipsis;
- overflow: hidden;
+ max-width: 265px;
+ text-overflow: ellipsis;
+ overflow: hidden;
}
.dirButtonContainer {
- display: flex;
- display: -webkit-flex;
- display: -ms-flexbox;
+ display: flex;
+ display: -webkit-flex;
+ display: -ms-flexbox;
- flex-wrap: wrap;
+ flex-wrap: wrap;
}
-.dirAltNavMenu .dirButton{
- max-width: 265px;
- overflow: hidden;
- text-overflow: ellipsis;
+.dirAltNavMenu .dirButton {
+ max-width: 265px;
+ overflow: hidden;
+ text-overflow: ellipsis;
}
.dirButton:hover, .dirButton:active, .dirButton:focus {
- background-color: #ddd;
+ background-color: #ddd;
}
.dropOnFolder {
- background-color: #F6A828 !important;
+ background-color: #F6A828 !important;
}
-.dirButtonActive {
- background-color: #E2E2E2 !important;
+.dirButtonActive {
+ background-color: #E2E2E2 !important;
}
#location .selectedDirectory {
- background-color: #EBD5AA;
+ background-color: #EBD5AA;
}
#locationContent {
- overflow-x: hidden;
- overflow-y: auto;
+ overflow-x: hidden;
+ overflow-y: auto;
}
.tagGroupIcon {
- width: 40px;
- padding-left: 5px;
+ width: 40px;
+ padding-left: 5px;
}
.tagGroupTitle {
- text-align: left;
- padding: 10px 0 0 2px;
- font-size: 14px !important;
- max-width: 280px;
- text-overflow: ellipsis;
- overflow: hidden;
+ text-align: left;
+ padding: 10px 0 0 2px;
+ font-size: 14px !important;
+ max-width: 280px;
+ text-overflow: ellipsis;
+ overflow: hidden;
}
.tagGroupActions {
- width: 40px;
+ width: 40px;
}
.directoryIcon {
- width: 40px;
- padding-left: 5px;
+ width: 40px;
+ padding-left: 5px;
}
.tagButton {
- padding: 2px 4px 2px 4px !important;
- background: #008000 !important;
- color: white !important;
- margin: 1px;
- border: 0;
- z-index: 9999;
- border-radius: 5px !important;
- text-decoration: none !important;
- max-width: 150px;
- text-overflow: ellipsis;
- text-transform: none;
- overflow: hidden;
+ padding: 2px 4px 2px 4px !important;
+ background: #008000 !important;
+ color: white !important;
+ margin: 1px;
+ border: 0;
+ z-index: 9999;
+ border-radius: 5px !important;
+ text-decoration: none !important;
+ max-width: 150px;
+ text-overflow: ellipsis;
+ text-transform: none;
+ overflow: hidden;
}
.tagButton:hover {
- opacity: 0.8 !important;
- border: 0;
+ opacity: 0.8 !important;
+ border: 0;
}
.directoryTitle {
- text-align: left;
- padding-left: 0px;
- padding-right: 0px;
- font-size: 14px !important;
- max-width: 280px;
- text-overflow: ellipsis;
- text-transform: none;
- overflow: hidden;
+ text-align: left;
+ padding-left: 0px;
+ padding-right: 0px;
+ font-size: 14px !important;
+ max-width: 280px;
+ text-overflow: ellipsis;
+ text-transform: none;
+ overflow: hidden;
}
.directoryActions {
- width: 40px;
+ width: 40px;
}
input a.resetFilter {
- text-indent: -1000em;
- width: 16px;
- height: 16px;
- display: inline-block;
- position: relative;
- left: -20px;
- top: 3px;
+ text-indent: -1000em;
+ width: 16px;
+ height: 16px;
+ display: inline-block;
+ position: relative;
+ left: -20px;
+ top: 3px;
}
/* Hiding the OOTB filter box */
.dataTables_filter {
- display: none;
+ display: none;
}
/* Full screen workaround for webkit browser*/
:-webkit-full-screen #viewer {
- width: 100%;
- height: 100%;
+ width: 100%;
+ height: 100%;
}
/* Used in welcome dialog */
.carousel-inner > .item > img {
- margin: 0 auto;
- max-height: 100%;
- max-width: 100%;
+ margin: 0 auto;
+ max-height: 100%;
+ max-width: 100%;
}
.icon-leaf:hover {
- color: green;
+ color: green;
}
.groupTitle {
- color: #444444;
- font-weight: bold;
- font-size: 12px;
- display: inline-block;
+ color: #444444;
+ font-weight: bold;
+ font-size: 12px;
+ display: inline-block;
}
#dialogOptions .modal-header {
- height: 97px;
+ height: 97px;
}
#dialogOptions .modal-body {
- overflow-y: auto;
- overflow-x: hidden;
- min-height: 400px;
- max-height: 400px;
+ overflow-y: auto;
+ overflow-x: hidden;
+ min-height: 400px;
+ max-height: 400px;
}
.optionsTitle {
- text-transform: uppercase;
- font-weight: normal;
- color: gray;
- padding: 5px 10px 5px 10px !important;
- font-size: 12px;
+ text-transform: uppercase;
+ font-weight: normal;
+ color: gray;
+ padding: 5px 10px 5px 10px !important;
+ font-size: 12px;
}
#welcomeScreen {
- background: url(welcome-logo.png) no-repeat center;
- background-size: auto auto;
- width: 100%;
- height: 100%;
+ background: url(welcome-logo.png) no-repeat center;
+ background-size: auto auto;
+ width: 100%;
+ height: 100%;
}
#newVersionAvailable {
- padding-left: 10px;
- color: #7bd148;
- display: none;
+ padding-left: 10px;
+ color: #7bd148;
+ display: none;
}
#sideBarButtonGroup {
- margin-right: 3px;
- white-space: nowrap;
+ margin-right: 3px;
+ white-space: nowrap;
}
#showTagGroups, #showLocations, #contactUs {
- width: 50px;
+ width: 50px;
}
#contactUsContent {
- display: none;
+ display: none;
}
#contactUsContent a {
- height: 45px;
- color: #404040;
- width: 100%;
- text-align: left;
+ height: 45px;
+ color: #404040;
+ width: 100%;
+ text-align: left;
}
#alternativeNavigator .btn-link {
- padding-left: 0px;
- padding-right: 0px;
+ padding-left: 0px;
+ padding-right: 0px;
}
#alternativeNavigator {
- margin: 0px 5px 5px 0;
- height: 30px;
- min-width: 100px;
- max-width: 150px
+ margin: 0px 5px 5px 0;
+ height: 30px;
+ min-width: 100px;
+ max-width: 150px
}
.dirAltNavMenu ul {
- overflow-y: auto;
- max-height: 430px;
- width: 250px;
- padding: 5px;
- display: block;
+ overflow-y: auto;
+ max-height: 430px;
+ width: 250px;
+ padding: 5px;
+ display: block;
}
.dirAltNavMenu li {
- max-width: 240px;
- text-overflow: ellipsis;
- overflow: hidden;
+ max-width: 240px;
+ text-overflow: ellipsis;
+ overflow: hidden;
}
.altNavFolderTitle {
- max-width: 200px;
- text-overflow: ellipsis;
- text-transform: none;
- overflow: hidden;
- margin-left: 0;
- padding-left: 4px;
- padding-right: 4px;
+ max-width: 200px;
+ text-overflow: ellipsis;
+ text-transform: none;
+ overflow: hidden;
+ margin-left: 0;
+ padding-left: 4px;
+ padding-right: 4px;
}
/*.altNavFolderTitle:hover {
@@ -459,81 +458,87 @@ input a.resetFilter {
}*/
#closeOpenedFile {
- position: fixed;
- top: 1px;
- right: 0px;
- height: 37px;
- box-shadow: -11px 1px 24px -1px #F2F2F2;
- background-color: #F2F2F2;
+ position: fixed;
+ top: 1px;
+ right: 0px;
+ height: 37px;
+ box-shadow: -11px 1px 24px -1px #F2F2F2;
+ background-color: #F2F2F2;
}
#perspectiveSwitcher {
- top: 7px;
- right: 7px;
- min-width: 200px;
+ top: 7px;
+ right: 7px;
+ min-width: 200px;
}
.keyShortcut {
- margin-top: 15px;
- display: none;
+ margin-top: 15px;
+ display: none;
}
#addTagFileViewer {
- height: 22px;
- width: 35px;
- margin-right: 4px;
- padding-top: 0px;
+ height: 22px;
+ width: 35px;
+ margin-right: 4px;
+ padding-top: 0px;
}
.contactUsSeparator {
- margin: 0 15px 0 15px;
- border-top: 1px solid #ddd
+ margin: 0 15px 0 15px;
+ border-top: 1px solid #ddd
}
.appBackgroundTile {
- background-image: url('background.png');
- background-repeat: repeat;
- margin: 0;
+ background-image: url('background.png');
+ background-repeat: repeat;
+ margin: 0;
}
/* Setting the background of every perspective to white */
.col2 > .row2 > div {
- background-color: white;
+ background-color: white;
}
#exitFullScreen {
- position: absolute;
- top: 5px;
- right: 5px;
- color: white;
- background-color: rgba(173, 173, 173, 0.5);
- display: none;
- z-index: 99999;
+ position: absolute;
+ top: 5px;
+ right: 5px;
+ color: white;
+ background-color: rgba(173, 173, 173, 0.5);
+ display: none;
+ z-index: 99999;
}
#openLeftPanel {
- padding-left: 12px;
- padding-right: 12px;
- padding-top: 2px;
+ padding-left: 12px;
+ padding-right: 12px;
+ padding-top: 2px;
}
#perspectiveSwitcherButton {
- background-color: #F2F2F2;
+ background-color: #F2F2F2;
}
.betaTag {
- color: red;
- margin-left: 5px;
+ color: red;
+ margin-left: 5px;
}
.parentDirectoryButton {
- max-width: 30px !important;
+ max-width: 30px !important;
}
.top-align-5 {
- margin-top: 5px;
+ margin-top: 5px;
+}
+
+.flatpickr-input {
+ min-width: 40%;
}
-.flatpickr-input{
- min-width: 40%;
+.date-time-calendar {
+ margin-left: 15px;
+ margin-right: 15px;
+ margin-top: 15px;
}
\ No newline at end of file
diff --git a/data/index.html b/data/index.html
index afdb7aac3..8530ebcb7 100644
--- a/data/index.html
+++ b/data/index.html
@@ -521,8 +521,7 @@
</div>
</div>
<div class="modal-footer">
- <button class="btn btn-primary" data-dismiss="modal" aria-hidden="true"><i class="fa fa-check fa-lg"></i>
- </div>
+ <button class="btn btn-primary" data-dismiss="modal" aria-hidden="true"><i class="fa fa-check fa-lg"></i></button></div>
</div>
</div>
</div>
@@ -657,29 +656,34 @@
</form>
</div>
<div class="tab-pane" id="dateTimeTab">
+
<div class="row">
<div class="form-group">
- <div class="col-sm-4">
+ <div class="col-xs-5 col-sm-4">
<input class="" id="dateCalendarInput" type="radio" name="dateTimeName" checked>
<label class="active" data-i18n="ns.dialogs:dateCalendar"></label>
</div>
- <div class="col-sm-4">
+ <div class="col-xs-5 col-sm-4">
<input type="radio" id="dateTimeInput" name="dateTimeName">
<label class="" data-i18n="ns.dialogs:dateTime"></label>
</div>
- <div class="col-sm-4">
+ <div class="col-xs-5 col-sm-4">
<input type="radio" id="dateTimeRangeInput" name="dateTimeName">
<label class="" data-i18n="ns.dialogs:dateTimeRange"></label>
</div>
</div>
- <div class="form-group col-sm-12">
- <input class='calendar' id="dateCalendar" data-i18n="[placeholder]ns.dialogs:dateCalendar">
- <input class='flatpickr' id="dateTimeCalendar" data-enabletime='true' data-enableseconds='true' data-time_24hr='true'
- data-i18n="[placeholder]ns.dialogs:dateTime">
- <div id="dateTimeRange">
- <input class='flatpickr' id="dateTimeRangeCalendar" data-i18n="[placeholder]ns.dialogs:dateTimeRange">
- <input class='flatpickr' id="dateTimeRangeMaxCalendar" data-i18n="[placeholder]ns.dialogs:dateTimeRangeMax">
- </div>
+ </div>
+
+ <div class="date-time-calendar">
+ <div class="form-group">
+ <!--<input class='calendar' id="dateCalendar" data-i18n="[placeholder]ns.dialogs:dateCalendar">-->
+ <div id="dateCalendar" data-i18n="[placeholder]ns.dialogs:dateCalendar"></div>
+ <!--<input class='flatpickr' id="dateTimeCalendar" data-enabletime='true' data-enableseconds='true' data-time_24hr='true'-->
+ <!--data-i18n="[placeholder]ns.dialogs:dateTime">-->
+ <!--<div id="dateTimeRange">-->
+ <!--<input class='flatpickr' id="dateTimeRangeCalendar" data-i18n="[placeholder]ns.dialogs:dateTimeRange">-->
+ <!--<input class='flatpickr' id="dateTimeRangeMaxCalendar" data-i18n="[placeholder]ns.dialogs:dateTimeRangeMax">-->
+ <!--</div>-->
</div>
</div>
</div>
diff --git a/data/js/core.ui.js b/data/js/core.ui.js
index 73c44ee56..8248f01d2 100644
--- a/data/js/core.ui.js
+++ b/data/js/core.ui.js
@@ -12,6 +12,7 @@ define(function(require, exports, module) {
var TSPOSTIO = require("tspostioapi");
require('pickr');
+ require('datetimepicker');
var fileContent;
var fileType;
@@ -682,62 +683,73 @@ define(function(require, exports, module) {
}
function showDateTimeCalendar() {
- flatpickr('#dateTimeCalendar', {
- enable: [
- {
- from: "1970-00-00",
- to: "2050-00-00"
- }
- ],
- dateFormat: 'Y-m-d',
- onChange: function(dateObj, dateStr) {
- console.log(dateObj);
- console.log(dateStr);
- }
- });
- flatpickr('#dateTimeRangeCalendar', {
- enable: [
- {
- from: "1970-00-00",
- to: "2050-00-00"
- }
- ],
- //dateFormat: 'Y-m-d',
- altInput: true,
- //altFormat: "\\F\\r\\o\\m: Y-m-d",
- altFormat: "\\F\\r\\o\\m: l, F j Y",
-
- onChange: function(dateObj, dateStr) {
- console.log(dateObj);
- console.log(dateStr);
- }
- });
- flatpickr('#dateTimeRangeMaxCalendar', {
- enable: [
- {
- from: "1970-00-00",
- to: "2050-00-00"
- }
- ],
- //dateFormat: 'Y-m-d',
- altInput: true,
- altFormat: "\\T\\o: Y-m-d",
- //altFormat: "\\T\\o: l, F j Y",
-
- onChange: function(dateObj, dateStr) {
- console.log(dateObj);
- console.log(dateStr);
- }
- });
- flatpickr('.calendar', {
- dateFormat: 'Y-m-d',
+ $('#dateCalendar').datetimepicker({
+ format: 'MMMM YYYY',
+ inline: true,
+ sideBySide: true,
+ calendarWeeks: true,
+ dayViewHeaderFormat: false,
+ //minDate: false,
+ //maxDate: true,
+ });
+ //flatpickr('#dateTimeCalendar', {
+ // enable: [
+ // {
+ // from: "1970-00-00",
+ // to: "2050-00-00"
+ // }
+ // ],
+ // dateFormat: 'Y-m-d',
+ //
+ // onChange: function(dateObj, dateStr) {
+ // console.log(dateObj);
+ // console.log(dateStr);
+ // }
+ //});
+ //flatpickr('#dateTimeRangeCalendar', {
+ // enable: [
+ // {
+ // from: "1970-00-00",
+ // to: "2050-00-00"
+ // }
+ // ],
+ // //dateFormat: 'Y-m-d',
+ // altInput: true,
+ // //altFormat: "\\F\\r\\o\\m: Y-m-d",
+ // altFormat: "\\F\\r\\o\\m: l, F j Y",
+ //
+ // onChange: function(dateObj, dateStr) {
+ // console.log(dateObj);
+ // console.log(dateStr);
+ // }
+ //});
+ //flatpickr('#dateTimeRangeMaxCalendar', {
+ // enable: [
+ // {
+ // from: "1970-00-00",
+ // to: "2050-00-00"
+ // }
+ // ],
+ // //dateFormat: 'Y-m-d',
+ // altInput: true,
+ // altFormat: "\\T\\o: Y-m-d",
+ // //altFormat: "\\T\\o: l, F j Y",
+ //
+ // onChange: function(dateObj, dateStr) {
+ // console.log(dateObj);
+ // console.log(dateStr);
+ // }
+ //});
+ //flatpickr('.calendar', {
+ // dateFormat: 'Y-m-d',
+ //
+ // onChange: function(dateObj, dateStr) {
+ // console.log(dateObj);
+ // console.log(dateStr);
+ // }
+ //});
- onChange: function(dateObj, dateStr) {
- console.log(dateObj);
- console.log(dateStr);
- }
- });
}
function showTagEditDialog() {
diff --git a/data/loader.js b/data/loader.js
index de2a363f7..b3f9aef2b 100644
--- a/data/loader.js
+++ b/data/loader.js
@@ -112,6 +112,9 @@ var isWin = navigator.appVersion.indexOf("Win")!==-1;
webdav: 'web/webdavlib/webdavlib',
leaflet: 'libs/leaf/leaflet',
leafletlocate: 'libs/leaflet.locatecontrol/dist/L.Control.Locate.min',
+ moment: 'libs/moment/min/moment.min',
+ momenttimezone: 'libs/moment-timezone/builds/moment-timezone.min',
+ datetimepicker: 'libs/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min',
tscore: 'js/core.api',
tssetting: 'js/settings.api',
diff --git a/package.json b/package.json
index 62d2bc064..591045c18 100644
--- a/package.json
+++ b/package.json
@@ -17,7 +17,6 @@
"private-browsing": false
},
"unpack": true,
-
"repository": {
"type": "git",
"url": "https://github.com/tagspaces/tagspaces.git"