From fa4c66e8d14f4362c6cd1f97290db275988c356b Mon Sep 17 00:00:00 2001 From: alopexc0de Date: Thu, 26 Jun 2014 19:33:48 -0400 Subject: [PATCH] Change submitbtn to type submit, remove placeholder php for messages and smaller jquery Changes to reflect commit:160af787 --- Website/resolve.php | 57 +++++++-------------------------------------- 1 file changed, 8 insertions(+), 49 deletions(-) diff --git a/Website/resolve.php b/Website/resolve.php index f22c95d..dddadb7 100644 --- a/Website/resolve.php +++ b/Website/resolve.php @@ -30,8 +30,9 @@
http://lob.li/ + - @@ -47,46 +48,6 @@
- - - -
- Oh noes! An error has occured. -
- - - -
- Your link: - Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. - - - - - -
- - - -
- Your link: - Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. - is not a lob.li link.
However we found that it has been shortened. lob.li/123 - - - -
- - - -
- Your link: - Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. - is not a lob.li link and has not been shortened. -
- - -
@@ -94,7 +55,7 @@ @@ -141,14 +102,12 @@ $.post("process.php?token=", $(this).serialize(), function(data){ $("#message").hide().slideDown("fast"); $("#theLoader").hide(); - if($('#error').length){ - $('#short-button').removeClass('btn-primary'); - $('#short-button').removeClass('btn-success'); - $('#short-button').addClass('btn-danger'); + if($('#danger').length){ + $('#short-button').removeClass("btn-primary btn-success btn-warning").addClass("btn-danger"); }else if($('#success').length){ - $('#short-button').removeClass('btn-primary'); - $('#short-button').removeClass('btn-danger'); - $('#short-button').addClass('btn-success'); + $('#short-button').removeClass("btn-primary btn-danger btn-warning").addClass("btn-success"); + }else if($('#warning').length){ + $('#short-button').removeClass("btn-primary btn-success btn-danger").addClass("btn-warning"); } }); });