You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/07/14 22:09:38 UTC

git commit: Add a back button when ?showBack exists (used in mobilespec)

Repository: cordova-plugin-test-framework
Updated Branches:
  refs/heads/master bec266f1c -> 9e6f05488


Add a back button when ?showBack exists (used in mobilespec)


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/commit/9e6f0548
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/tree/9e6f0548
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/diff/9e6f0548

Branch: refs/heads/master
Commit: 9e6f054888cfb92fbd892480ff3640962a2d337f
Parents: bec266f
Author: Andrew Grieve <ag...@chromium.org>
Authored: Mon Jul 14 16:09:20 2014 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Mon Jul 14 16:09:20 2014 -0400

----------------------------------------------------------------------
 www/main.js | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/9e6f0548/www/main.js
----------------------------------------------------------------------
diff --git a/www/main.js b/www/main.js
index a39a6bc..9643b35 100644
--- a/www/main.js
+++ b/www/main.js
@@ -189,6 +189,11 @@ function runMain() {
   createActionButton('Auto Tests', setMode.bind(null, 'auto'));
   createActionButton('Manual Tests', setMode.bind(null, 'manual'));
   createActionButton('Reset App', location.reload.bind(location));
+  if (/showBack/.exec(location.search)) {
+      createActionButton('Back', function() {
+          history.go(-1);
+      });
+  }
 }
 
 /******************************************************************************/