Skip to content

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

Fixed reloading the application after clicking button in bootstrap modal

uggrock9bdf5b22ea79
diff --git a/build.number b/build.number
index 61afce69c..b6513bf74 100644
--- a/build.number
+++ b/build.number
@@ -1,4 +1,4 @@
#Build Number for ANT. Do not edit!
-#Fri Jun 14 15:38:05 CEST 2013
-build.number=1380
+#Fri Jun 14 16:46:13 CEST 2013
+build.number=1382
3=
diff --git a/data/index.html b/data/index.html
index f5e25f0fc..67376bc53 100644
--- a/data/index.html
+++ b/data/index.html
@@ -234,8 +234,8 @@
<div class="controls">
<div class="btn-group" data-toggle="buttons-radio" name="tagTypeChooser">
<button id="plainTagTypeButton" title="Create a plain text file" class="btn">Plain</button>
- <button id="dateTagTypeButton" title="Create a MarkDown file" class="btn">Date</button>
- <button id="currencyTagTypeButton" title="Create a HTML file" class="btn">Currency</button>
+ <button id="dateTagTypeButton" title="Create a MarkDown file" class="btn">Date</button>
+ <button id="currencyTagTypeButton" title="Create a HTML file" class="btn">Currency</button>
</div>
</div>
</div>
diff --git a/data/js/core.ui.js b/data/js/core.ui.js
index d9beca11b..cf9a2ec0b 100644
--- a/data/js/core.ui.js
+++ b/data/js/core.ui.js
@@ -96,8 +96,10 @@ define(function(require, exports, module) {
TSCORE.showConfirmDialog("test1","test2", function() {alert("test")});
})
- $( "#txtFileTypeButton" ).click(function() {
- // TODO Add to config options
+ $( "#txtFileTypeButton" ).click(function(e) {
+ // Fixes reloading of the application by click
+ e.preventDefault();
+
fileContent = TSCORE.Config.getNewTextFileContent();
//Leave the filename as it is by no extension
if($( "#newFileName" ).val().lastIndexOf(".")>=0) {
@@ -105,8 +107,10 @@ define(function(require, exports, module) {
}
});
- $( "#htmlFileTypeButton" ).click(function() {
- // TODO Add to config options
+ $( "#htmlFileTypeButton" ).click(function(e) {
+ // Fixes reloading of the application by click
+ e.preventDefault();
+
fileContent = TSCORE.Config.getNewHTMLFileContent();
//Leave the filename as it is by no extension
if($( "#newFileName" ).val().lastIndexOf(".")>=0) {
@@ -114,8 +118,10 @@ define(function(require, exports, module) {
}
});
- $( "#mdFileTypeButton" ).click(function() {
- // TODO Add to config options
+ $( "#mdFileTypeButton" ).click(function(e) {
+ // Fixes reloading of the application by click
+ e.preventDefault();
+
fileContent = TSCORE.Config.getNewMDFileContent();
//Leave the filename as it is by no extension
if($( "#newFileName" ).val().lastIndexOf(".")>=0) {
@@ -152,11 +158,17 @@ define(function(require, exports, module) {
// Edit Tag Dialog
- $( "#plainTagTypeButton" ).click(function() {
+ $( "#plainTagTypeButton" ).click(function(e) {
+ // Fixes reloading of the application by click
+ e.preventDefault();
+
TSCORE.selectedTag, $( "#newTagName" ).datepicker( "destroy" ).val("");
});
- $( "#dateTagTypeButton" ).click(function() {
+ $( "#dateTagTypeButton" ).click(function(e) {
+ // Fixes reloading of the application by click
+ e.preventDefault();
+
TSCORE.selectedTag, $( "#newTagName" ).datepicker({
showWeek: true,
firstDay: 1,
@@ -164,7 +176,10 @@ define(function(require, exports, module) {
});
});
- $( "#currencyTagTypeButton" ).click(function() {
+ $( "#currencyTagTypeButton" ).click(function(e) {
+ // Fixes reloading of the application by click
+ e.preventDefault();
+
TSCORE.selectedTag, $( "#newTagName" ).datepicker( "destroy" ).val("XEUR")
});
diff --git a/data/js/options.ui.js b/data/js/options.ui.js
index 21a8a1c98..c4dfe46ab 100644
--- a/data/js/options.ui.js
+++ b/data/js/options.ui.js
@@ -124,11 +124,17 @@ define(function(require, exports, module) {
//TSCORE.reloadUI();
})
- $('#addFileTypeButton').click(function() {
+ $('#addFileTypeButton').click(function(e) {
+ // Fixes reloading of the application by click
+ e.preventDefault();
+
addFileType($('#fileTypesList'), "", "", "")
})
- $('#addPerspectiveButton').click(function() {
+ $('#addPerspectiveButton').click(function(e) {
+ // Fixes reloading of the application by click
+ e.preventDefault();
+
addPerspective($('#perspectiveList'), "")
})
}
diff --git a/data/manifest.json b/data/manifest.json
index d0e1744a4..dfcdbc6f5 100644
--- a/data/manifest.json
+++ b/data/manifest.json
@@ -1,6 +1,6 @@
{
"name": "TagSpaces",
- "version": "1.4.1373",
+ "version": "1.4.1380",
"manifest_version": 2,
"description": "TagSpaces Explorer",
"icons": {
diff --git a/package.json b/package.json
index a1194a595..edc5ed4a7 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"name": "tagspaces",
"license": "AGPL 3.0",
"author": "Ugg Rock",
- "version": "1.4.1379",
+ "version": "1.4.1380",
"fullName": "TagSpaces",
"id": "jid1-FBaMKxTifTSahQ",
"description": "TagSpaces is a firefox addon, which allows you to browse your local file system and add tags to your files.",
diff --git a/update.rdf b/update.rdf
index 21d522f97..aa07dee32 100644
--- a/update.rdf
+++ b/update.rdf
@@ -7,13 +7,13 @@
<r:Seq>
<r:li>
<r:Description>
- <version>1.4.1379</version>
+ <version>1.4.1380</version>
<targetApplication>
<r:Description>
<id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</id>
<minVersion>16.0</minVersion>
<maxVersion>*</maxVersion>
- <updateLink>http://tagspaces.com/releases/1.4/tagspaces.1.4.1379.xpi</updateLink>
+ <updateLink>http://tagspaces.com/releases/1.4/tagspaces.1.4.1380.xpi</updateLink>
<updateInfoURL>http://tagspaces.com/releases/1.4/updateInfo.xml</updateInfoURL>
</r:Description>
</targetApplication>