From cce89cb18e7374c416e9a4785da2aeb39a25bfba Mon Sep 17 00:00:00 2001 From: Awais-cb Date: Tue, 9 May 2017 18:34:53 +0500 Subject: [PATCH] modified:Update message added scrolling to it and redirecting --- upload/styles/cb_28/layout/upload.html | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/upload/styles/cb_28/layout/upload.html b/upload/styles/cb_28/layout/upload.html index 8f731ce9..88e08e38 100644 --- a/upload/styles/cb_28/layout/upload.html +++ b/upload/styles/cb_28/layout/upload.html @@ -1,7 +1,6 @@ - {if $msg}
- {$msg} + {$msg}
{/if}
@@ -365,12 +364,20 @@ if(msg.error){ $("#uploadMessage").html(msg.error).attr("class", "alert alert-danger"); }else{ + //Update message on submit changes + $("#uploadMessage").html("Video details have been updated Successfully").attr("class", "alert alert-success container"); + $("#uploadMessage").html(msg.msg).attr("class", "alert alert-success"); - window.location = "{$baseurl}/manage_videos.php"; - } + + $('html,body').animate({ + scrollTop: $("body").offset().top}, + 'medium'); + //Update message on submit changes + } setTimeout(function(){ $("#uploadMessage").addClass("hidden"); - }, 5000); + window.location = "{$baseurl}/manage_videos.php"; + }, 3000); }).fail(function(err){ console.log(err); });