mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 20:21:37 +00:00
Empty commit
This commit is contained in:
parent
198cb9c9af
commit
63f08f0b62
@ -176,7 +176,7 @@
|
|||||||
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
||||||
<input type="hidden" name="collageid" value="<?=$CollageID?>" />
|
<input type="hidden" name="collageid" value="<?=$CollageID?>" />
|
||||||
<div class="field_div">
|
<div class="field_div">
|
||||||
<input type="text" size="20" name="url" />
|
<input type="text" id="artist" size="20" name="url" <? Users::has_autocomplete_enabled('other'); ?>/>
|
||||||
</div>
|
</div>
|
||||||
<div class="submit_div">
|
<div class="submit_div">
|
||||||
<input type="submit" value="Add" />
|
<input type="submit" value="Add" />
|
||||||
|
@ -61,7 +61,7 @@ function compare($X, $Y) {
|
|||||||
$CollageSubscriptions = array();
|
$CollageSubscriptions = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (in_array($CollageID, $CollageSubscriptions)) {
|
if (in_array($CollageID, $CollagepSubscriptions)) {
|
||||||
$Cache->delete_value('collage_subs_user_new_'.$LoggedUser['ID']);
|
$Cache->delete_value('collage_subs_user_new_'.$LoggedUser['ID']);
|
||||||
}
|
}
|
||||||
$DB->query("
|
$DB->query("
|
||||||
@ -70,7 +70,7 @@ function compare($X, $Y) {
|
|||||||
WHERE UserID = ".$LoggedUser['ID']."
|
WHERE UserID = ".$LoggedUser['ID']."
|
||||||
AND CollageID = $CollageID");
|
AND CollageID = $CollageID");
|
||||||
|
|
||||||
if ($CollageCategoryID === array_search(ARTIST_COLLAGE, $CollageCats)) {
|
if ($CollageCategoryID == array_search(ARTIST_COLLAGE, $CollageCats)) {
|
||||||
include(SERVER_ROOT.'/sections/collages/artist_collage.php');
|
include(SERVER_ROOT.'/sections/collages/artist_collage.php');
|
||||||
} else {
|
} else {
|
||||||
include(SERVER_ROOT.'/sections/collages/torrent_collage.php');
|
include(SERVER_ROOT.'/sections/collages/torrent_collage.php');
|
||||||
|
@ -124,7 +124,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
View::show_header(($NewRequest ? 'Create a request' : 'Edit a request'), 'requests');
|
View::show_header(($NewRequest ? 'Create a request' : 'Edit a request'), 'requests,form_validate');
|
||||||
?>
|
?>
|
||||||
<div class="thin">
|
<div class="thin">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
|
@ -11,7 +11,7 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
if (url.path == 'torrents' || url.path == 'upload' || url.path == 'artist' || (url.path == 'requests' && url.query['action'] == 'new')) {
|
if (url.path == 'torrents' || url.path == 'upload' || url.path == 'artist' || (url.path == 'requests' && url.query['action'] == 'new') || url.path == 'collages') {
|
||||||
$("#artist" + SELECTOR).autocomplete({
|
$("#artist" + SELECTOR).autocomplete({
|
||||||
serviceUrl : ARTIST_AUTOCOMPLETE_URL
|
serviceUrl : ARTIST_AUTOCOMPLETE_URL
|
||||||
});
|
});
|
||||||
|
@ -22,6 +22,11 @@ $(document).ready(function() {
|
|||||||
$("#filter_form").validate();
|
$("#filter_form").validate();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case "requests":
|
||||||
|
if (query['action'] == "new") {
|
||||||
|
$("#request_form").preventDoubleSubmission();
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -210,6 +210,24 @@ function URL() {
|
|||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// jQuery plugin to prevent double submission of forms
|
||||||
|
jQuery.fn.preventDoubleSubmission = function() {
|
||||||
|
$(this).bind('submit',function(e){
|
||||||
|
var $form = $(this);
|
||||||
|
|
||||||
|
if ($form.data('submitted') === true) {
|
||||||
|
// Previously submitted - don't submit again
|
||||||
|
e.preventDefault();
|
||||||
|
} else {
|
||||||
|
// Mark it so that the next submit can be ignored
|
||||||
|
$form.data('submitted', true);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Keep chainability
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
jQuery.extend(jQuery.prototype, {
|
jQuery.extend(jQuery.prototype, {
|
||||||
results: function () {
|
results: function () {
|
||||||
return this.size();
|
return this.size();
|
||||||
|
Loading…
Reference in New Issue
Block a user