Uploading errors show properly...
This commit is contained in:
parent
d9a2ebfd34
commit
3e212768fc
4 changed files with 53 additions and 20 deletions
|
@ -277,7 +277,7 @@ $svfile = TEMP_DIR.'/'.$file_name.'.'.$ext;
|
|||
if(empty($file))
|
||||
{
|
||||
echo "error";
|
||||
$array['error'] = "Please enter file url";
|
||||
$array['error'] = "Please 2enter file url";
|
||||
echo json_encode($array);
|
||||
exit();
|
||||
}
|
||||
|
|
|
@ -148,10 +148,9 @@ var loading_img_2 = "<img style='vertical-align:middle' src='"+imageurl+"/ajax-l
|
|||
force_stop = false;
|
||||
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();
|
||||
$('#remoteUploadBttnStop').attr("disabled","disabled").hide();
|
||||
$('#ytUploadBttn').attr("disabled","");
|
||||
return false;
|
||||
}
|
||||
var ajaxCall = $.ajax({
|
||||
|
@ -216,7 +215,7 @@ var loading_img_2 = "<img style='vertical-align:middle' src='"+imageurl+"/ajax-l
|
|||
force_stop = false;
|
||||
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');
|
||||
$('#ytUploadBttn').button('reset');
|
||||
force_stop = true;
|
||||
|
|
|
@ -411,13 +411,44 @@
|
|||
</form>
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
<style type="text/css">
|
||||
.head_sort_link {
|
||||
margin-bottom: -10px !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<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(){
|
||||
rm_hvr();
|
||||
$(".cbsearchtype a").on({
|
||||
click: function(e){
|
||||
e.preventDefault();
|
||||
|
@ -438,17 +469,17 @@
|
|||
$('.search-type').html(text);
|
||||
});
|
||||
|
||||
//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');
|
||||
}
|
||||
);
|
||||
// //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');
|
||||
// }
|
||||
// );
|
||||
|
||||
});
|
||||
</script>
|
|
@ -209,6 +209,9 @@
|
|||
background: none !important;
|
||||
color:#000 !important;
|
||||
}
|
||||
.head_sort_link {
|
||||
margin-bottom: -10px !important;
|
||||
}
|
||||
/**/
|
||||
@media (min-width: 768px) and (max-width:4000px) {
|
||||
.navig-resp-bg, .search-resp-bg{
|
||||
|
|
Loading…
Add table
Reference in a new issue