Uploading errors show properly...

This commit is contained in:
Saqib Razzaq 2015-10-15 07:41:47 +00:00
parent d9a2ebfd34
commit 3e212768fc
4 changed files with 53 additions and 20 deletions

View file

@ -277,7 +277,7 @@ $svfile = TEMP_DIR.'/'.$file_name.'.'.$ext;
if(empty($file)) if(empty($file))
{ {
echo "error"; echo "error";
$array['error'] = "Please enter file url"; $array['error'] = "Please 2enter file url";
echo json_encode($array); echo json_encode($array);
exit(); exit();
} }

View file

@ -148,10 +148,9 @@ var loading_img_2 = "<img style='vertical-align:middle' src='"+imageurl+"/ajax-l
force_stop = false; force_stop = false;
if(!file || file=='undefined') if(!file || file=='undefined')
{ {
alert("Please enter file url"); $('#error_msgs').html('<div class="alert alert-danger" role="alert"> Please enter valid remote URL</div>');
$('#remoteUploadBttn').attr('disabled','').show(); $('#remoteUploadBttn').attr('disabled','').show();
$('#remoteUploadBttnStop').attr("disabled","disabled").hide(); $('#remoteUploadBttnStop').attr("disabled","disabled").hide();
$('#ytUploadBttn').attr("disabled","");
return false; return false;
} }
var ajaxCall = $.ajax({ var ajaxCall = $.ajax({
@ -216,7 +215,7 @@ var loading_img_2 = "<img style='vertical-align:middle' src='"+imageurl+"/ajax-l
force_stop = false; force_stop = false;
if(!file || file=='undefined') if(!file || file=='undefined')
{ {
alert("Please enter file url"); ('#error_msgs').html('<div class="alert alert-danger" role="alert"> Please enter valid URL</div>');
$('#remoteUploadBttn').button('reset'); $('#remoteUploadBttn').button('reset');
$('#ytUploadBttn').button('reset'); $('#ytUploadBttn').button('reset');
force_stop = true; force_stop = true;

View file

@ -411,13 +411,44 @@
</form> </form>
</div><!-- /.modal-dialog --> </div><!-- /.modal-dialog -->
</div><!-- /.modal --> </div><!-- /.modal -->
<style type="text/css">
.head_sort_link {
margin-bottom: -10px !important;
}
</style>
<script> <script>
function rm_hvr() {
if ( $(window).width() > 767 )
{
//drop-down
/*$(".dropdown.hvr").hover(
function() {
$('.dropdown-menu', this).not('.in .dropdown-menu').stop(true,true).slideDown("400");
$(this).toggleClass('open');
},
function() {
$('.dropdown-menu', this).not('.in .dropdown-menu').stop(true,true).slideUp("400");
$(this).toggleClass('open');
}
);*/
$(".dropdown.hvr").on("mouseenter",function(){
$('.dropdown-menu', this).not('.in .dropdown-menu').stop(true,true).slideDown("400");
//$(this).toggleClass('open');
});
$(".dropdown.hvr").on("mouseleave",function(){
$('.dropdown-menu', this).not('.in .dropdown-menu').stop(true,true).slideUp("400");
//$(this).toggleClass('open');
});
}
else
{
}
}
$(window).resize(function(){
rm_hvr();
});
$(document).ready(function(){ $(document).ready(function(){
rm_hvr();
$(".cbsearchtype a").on({ $(".cbsearchtype a").on({
click: function(e){ click: function(e){
e.preventDefault(); e.preventDefault();
@ -438,17 +469,17 @@
$('.search-type').html(text); $('.search-type').html(text);
}); });
//drop-down // //drop-down
$(".dropdown.hvr").hover( // $(".dropdown.hvr").hover(
function() { // function() {
$('.dropdown-menu', this).not('.in .dropdown-menu').stop(true,true).slideDown("400"); // $('.dropdown-menu', this).not('.in .dropdown-menu').stop(true,true).slideDown("400");
$(this).toggleClass('open'); // $(this).toggleClass('open');
}, // },
function() { // function() {
$('.dropdown-menu', this).not('.in .dropdown-menu').stop(true,true).slideUp("400"); // $('.dropdown-menu', this).not('.in .dropdown-menu').stop(true,true).slideUp("400");
$(this).toggleClass('open'); // $(this).toggleClass('open');
} // }
); // );
}); });
</script> </script>

View file

@ -209,6 +209,9 @@
background: none !important; background: none !important;
color:#000 !important; color:#000 !important;
} }
.head_sort_link {
margin-bottom: -10px !important;
}
/**/ /**/
@media (min-width: 768px) and (max-width:4000px) { @media (min-width: 768px) and (max-width:4000px) {
.navig-resp-bg, .search-resp-bg{ .navig-resp-bg, .search-resp-bg{