You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2015/07/21 22:00:51 UTC
airavata-php-gateway git commit: redirection confirmations for
appcatalog pages
Repository: airavata-php-gateway
Updated Branches:
refs/heads/0.15-release-branch 95af1e691 -> 0ba12d89c
redirection confirmations for appcatalog pages
Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/0ba12d89
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/0ba12d89
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/0ba12d89
Branch: refs/heads/0.15-release-branch
Commit: 0ba12d89ccfd8c1b4d3a4e481b96e87c8dc82789
Parents: 95af1e6
Author: Supun Nakandala <sc...@apache.org>
Authored: Wed Jul 22 01:30:26 2015 +0530
Committer: Supun Nakandala <sc...@apache.org>
Committed: Wed Jul 22 01:30:26 2015 +0530
----------------------------------------------------------------------
app/views/application/deployment.blade.php | 15 +++++++++++++++
app/views/application/interface.blade.php | 15 +++++++++++++++
app/views/application/module.blade.php | 13 +++++++++++++
app/views/resource/create.blade.php | 15 +++++++++++++++
app/views/resource/edit.blade.php | 14 ++++++++++++++
5 files changed, 72 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/0ba12d89/app/views/application/deployment.blade.php
----------------------------------------------------------------------
diff --git a/app/views/application/deployment.blade.php b/app/views/application/deployment.blade.php
index b2fb9e3..3dc2313 100644
--- a/app/views/application/deployment.blade.php
+++ b/app/views/application/deployment.blade.php
@@ -198,4 +198,19 @@
@section('scripts')
@parent
{{ HTML::script('js/deployment.js') }}
+<script>
+ var warn = true;
+
+ function disableWarn(){
+ warn = false;
+ return false;
+ }
+
+ window.onbeforeunload = function() {
+ if(warn){
+ return "Are you sure you want to navigate to other page ? (you will loose all unsaved data)";
+ }
+ warn = true;
+ }
+</script>
@stop
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/0ba12d89/app/views/application/interface.blade.php
----------------------------------------------------------------------
diff --git a/app/views/application/interface.blade.php b/app/views/application/interface.blade.php
index d428d63..5d7780d 100644
--- a/app/views/application/interface.blade.php
+++ b/app/views/application/interface.blade.php
@@ -186,4 +186,19 @@
@section('scripts')
@parent
{{ HTML::script('js/interface.js') }}
+<script>
+ var warn = true;
+
+ function disableWarn(){
+ warn = false;
+ return false;
+ }
+
+ window.onbeforeunload = function() {
+ if(warn){
+ return "Are you sure you want to navigate to other page ? (you will loose all unsaved data)";
+ }
+ warn = true;
+ }
+</script>
@stop
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/0ba12d89/app/views/application/module.blade.php
----------------------------------------------------------------------
diff --git a/app/views/application/module.blade.php b/app/views/application/module.blade.php
index 604bb76..5a9afea 100644
--- a/app/views/application/module.blade.php
+++ b/app/views/application/module.blade.php
@@ -161,6 +161,19 @@
@section('scripts')
@parent
<script type="text/javascript">
+ var warn = true;
+
+ function disableWarn(){
+ warn = false;
+ return false;
+ }
+
+ window.onbeforeunload = function() {
+ if(warn){
+ return "Are you sure you want to navigate to other page ? (you will loose all unsaved data)";
+ }
+ warn = true;
+ }
$(".panel-title").hover(
function () {
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/0ba12d89/app/views/resource/create.blade.php
----------------------------------------------------------------------
diff --git a/app/views/resource/create.blade.php b/app/views/resource/create.blade.php
index 1d44c22..d34b860 100644
--- a/app/views/resource/create.blade.php
+++ b/app/views/resource/create.blade.php
@@ -50,4 +50,19 @@
@section('scripts')
@parent
{{ HTML::script('js/script.js') }}
+<script>
+ var warn = true;
+
+ function disableWarn(){
+ warn = false;
+ return false;
+ }
+
+ window.onbeforeunload = function() {
+ if(warn){
+ return "Are you sure you want to navigate to other page ? (you will loose all unsaved data)";
+ }
+ warn = true;
+ }
+</script>
@stop
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/0ba12d89/app/views/resource/edit.blade.php
----------------------------------------------------------------------
diff --git a/app/views/resource/edit.blade.php b/app/views/resource/edit.blade.php
index 93ecef4..0ac7951 100644
--- a/app/views/resource/edit.blade.php
+++ b/app/views/resource/edit.blade.php
@@ -832,5 +832,19 @@
$(".delete-queueName").val($(this).data("queue-name"));
$(".delete-queueName").html($(this).data("queue-name"));
})
+
+ var warn = true;
+
+ function disableWarn(){
+ warn = false;
+ return false;
+ }
+
+ window.onbeforeunload = function() {
+ if(warn){
+ return "Are you sure you want to navigate to other page ? (you will loose all unsaved data)";
+ }
+ warn = true;
+ }
</script>
@stop
\ No newline at end of file