summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-09-19 21:12:13 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-09-19 21:12:13 +0200
commiteac284e6285ea83421dce47624bbcb8927ff2522 (patch)
tree65826a3a9cf640f24f42ae36cd1d99b1e0c763bf
parentplugin pack by zoidberg (diff)
downloadpyload-eac284e6285ea83421dce47624bbcb8927ff2522.tar.xz
closed #390
-rw-r--r--module/web/templates/default/edit_package.html2
-rw-r--r--module/web/templates/default/package_ui.js5
-rw-r--r--module/web/templates/default/queue.html2
3 files changed, 6 insertions, 3 deletions
diff --git a/module/web/templates/default/edit_package.html b/module/web/templates/default/edit_package.html
index f02540aaa..2b82c4027 100644
--- a/module/web/templates/default/edit_package.html
+++ b/module/web/templates/default/edit_package.html
@@ -19,7 +19,7 @@
<textarea rows="3" name="pack_pws" id="pack_pws"></textarea>
<button type="submit">{{_("Submit")}}</button>
-<button id="pack_reset" style="margin-left: 0" type="reset">{{_("Reset")}}</button>
+<button id="pack_reset" style="margin-left: 0" type="reset" >{{_("Reset")}}</button>
<div class="spacer"></div>
</form>
diff --git a/module/web/templates/default/package_ui.js b/module/web/templates/default/package_ui.js
index d1277233c..4913f1543 100644
--- a/module/web/templates/default/package_ui.js
+++ b/module/web/templates/default/package_ui.js
@@ -9,6 +9,10 @@ document.addEvent("domready", function() {
$('pack_reset').addEvent('click', function() {
hide_pack()
});
+
+ $('confirm_reset').addEvent('click', function() {
+ hide_pack()
+ });
});
function indicateLoad() {
@@ -311,7 +315,6 @@ var Package = new Class({
}.bind(this),
onFailure: indicateFail
}).send();
- hide_pack();
},
restartPackage: function(event) {
diff --git a/module/web/templates/default/queue.html b/module/web/templates/default/queue.html
index 3077b5316..dddfb055c 100644
--- a/module/web/templates/default/queue.html
+++ b/module/web/templates/default/queue.html
@@ -75,7 +75,7 @@ document.addEvent("domready", function(){
<h1>{{_("Delete Package")}}</h1>
<p>{{_("Are you sure, that you want to delete this package?")}}</p>
<button id="confirmDelete_button">{{_("Delete Package")}}</button>
- <button id="pack_reset" style="margin-left: 0" type="reset">{{_("Reset")}}</button>
+ <button id="confirm_reset" style="margin-left: 0" type="reset">{{_("Reset")}}</button>
</div>
{% include "default/edit_package.html" %}