copy from seminar
This commit is contained in:
1 parent
aba01c8239
commit
63b5e77b92
429 files changed
+4974
-4974
No files matched your search
+5
-5
@@ -96,7 +96,7 @@ function inputAppendLength() {
|
||||
|
||||
// Role Attribute Template Data
|
||||
function setData(l, type, ol) {
|
||||
var fields = $('#info').length ? "info[seminar_submission_fields]" : $('#sub_seminar_main').length ? "sub_seminar_main[seminar_submission_fields]" : "seminar_main[seminar_submission_fields]",
|
||||
var fields = $('#info').length ? "info[application_form_submission_fields]" : $('#sub_application_form_main').length ? "sub_application_form_main[application_form_submission_fields]" : "application_form_main[application_form_submission_fields]",
|
||||
data = {
|
||||
_add_more: ["add_more_" +l, fields+"["+l+"]["+type+"][add_more]"],
|
||||
_calendar: ["calendar_" +l, fields+"["+l+"]["+type+"][calendar]"],
|
||||
@@ -195,7 +195,7 @@ $(function() {
|
||||
addressVal = [];
|
||||
addressArray = [];
|
||||
addressInputId = [];
|
||||
seminar_mainType = null;
|
||||
application_form_mainType = null;
|
||||
returnDecide = false;
|
||||
$('.attributes').each(function() {
|
||||
if($(this).find('.toggle-check').attr('value') == "true") {
|
||||
@@ -222,7 +222,7 @@ $(function() {
|
||||
});
|
||||
$('#user-forms').delegate('.togglebox, .delete, .trigger, .remove-input', clickEvent, function(event) {
|
||||
if($(this).hasClass('togglebox')) {
|
||||
var seminar_main_staus = [];
|
||||
var application_form_main_staus = [];
|
||||
if($(this).hasClass('disable')) {
|
||||
$(this).find('.toggle-check')
|
||||
.attr('value', 'false')
|
||||
@@ -239,7 +239,7 @@ $(function() {
|
||||
.fadeOut(300)
|
||||
.find('.check')
|
||||
.attr("checked",false)
|
||||
.attr("value",seminar_main_staus);
|
||||
.attr("value",application_form_main_staus);
|
||||
}
|
||||
$(this).toggleClass('disable');
|
||||
};
|
||||
@@ -253,7 +253,7 @@ $(function() {
|
||||
appendIndex = $(this).closest('.controls').find('.input-append').length;
|
||||
nameNumber = $(this).closest('.controls').find('.input-append:eq(0)').find('input').eq(0).attr('name');
|
||||
nameNumber = nameNumber.match(/[^[\D\]]+(?=])/g)[0];
|
||||
seminar_mainType = $(this).data('seminar_mains')
|
||||
application_form_mainType = $(this).data('application_form_mains')
|
||||
if($(this).hasClass('textInput')) {
|
||||
$("#template-text").tmpl().appendTo($(this).closest('.controls').find('.add-target'));
|
||||
} else if ($(this).hasClass('textLengInput')) {
|
||||
+5
-5
@@ -96,7 +96,7 @@ function inputAppendLength() {
|
||||
|
||||
// Role Attribute Template Data
|
||||
function setData(l, type, ol) {
|
||||
var fields = $('#info').length ? "info[seminar_signup_fields]" : $('#sub_seminar_main').length ? "sub_seminar_main[seminar_signup_fields]" : "seminar_main[seminar_signup_fields]",
|
||||
var fields = $('#info').length ? "info[application_form_signup_fields]" : $('#sub_application_form_main').length ? "sub_application_form_main[application_form_signup_fields]" : "application_form_main[application_form_signup_fields]",
|
||||
data = {
|
||||
_add_more: ["add_more_" +l, fields+"["+l+"]["+type+"][add_more]"],
|
||||
_calendar: ["calendar_" +l, fields+"["+l+"]["+type+"][calendar]"],
|
||||
@@ -195,7 +195,7 @@ $(function() {
|
||||
addressVal = [];
|
||||
addressArray = [];
|
||||
addressInputId = [];
|
||||
seminar_mainType = null;
|
||||
application_form_mainType = null;
|
||||
returnDecide = false;
|
||||
$('.attributes').each(function() {
|
||||
if($(this).find('.toggle-check').attr('value') == "true") {
|
||||
@@ -222,7 +222,7 @@ $(function() {
|
||||
});
|
||||
$('#user-forms').delegate('.togglebox, .delete, .trigger, .remove-input', clickEvent, function(event) {
|
||||
if($(this).hasClass('togglebox')) {
|
||||
var seminar_main_staus = [];
|
||||
var application_form_main_staus = [];
|
||||
if($(this).hasClass('disable')) {
|
||||
$(this).find('.toggle-check')
|
||||
.attr('value', 'false')
|
||||
@@ -239,7 +239,7 @@ $(function() {
|
||||
.fadeOut(300)
|
||||
.find('.check')
|
||||
.attr("checked",false)
|
||||
.attr("value",seminar_main_staus);
|
||||
.attr("value",application_form_main_staus);
|
||||
}
|
||||
$(this).toggleClass('disable');
|
||||
};
|
||||
@@ -253,7 +253,7 @@ $(function() {
|
||||
appendIndex = $(this).closest('.controls').find('.input-append').length;
|
||||
nameNumber = $(this).closest('.controls').find('.input-append:eq(0)').find('input').eq(0).attr('name');
|
||||
nameNumber = nameNumber.match(/[^[\D\]]+(?=])/g)[0];
|
||||
seminar_mainType = $(this).data('seminar_mains')
|
||||
application_form_mainType = $(this).data('application_form_mains')
|
||||
if($(this).hasClass('textInput')) {
|
||||
$("#template-text").tmpl().appendTo($(this).closest('.controls').find('.add-target'));
|
||||
} else if ($(this).hasClass('textLengInput')) {
|
||||
File renamed without changes.
File renamed without changes.
Executable → Regular
+7
-7
@@ -26,7 +26,7 @@ function checkedLength() {
|
||||
if(_checked > 0) {
|
||||
$('#deselect').removeClass('hide');
|
||||
$('#deselect').on('click', deselect);
|
||||
$('#deleteItems').attr('rel', "<%= Rails.application.routes.url_helpers.delete_items_admin_seminar_items_path %>" + "?ids=" + ids);
|
||||
$('#deleteItems').attr('rel', "<%= Rails.application.routes.url_helpers.delete_items_admin_application_form_items_path %>" + "?ids=" + ids);
|
||||
$('#deleteItems').removeClass('hide');
|
||||
|
||||
} else {
|
||||
@@ -45,19 +45,19 @@ function checkedLength() {
|
||||
reload_links();
|
||||
});
|
||||
$('#deleteItems').on('click', function() {
|
||||
$('#delete_seminar_items .tags-groups').empty();
|
||||
$('#delete_seminar_items a.delete-tags').attr("href", $(this).attr("rel"));
|
||||
$('#delete_application_form_items .tags-groups').empty();
|
||||
$('#delete_application_form_items a.delete-tags').attr("href", $(this).attr("rel"));
|
||||
if(ids.length) {
|
||||
$('.filter-item').children('.card.active').each(function(i, e) {
|
||||
console.log($(e))
|
||||
$(e).parents('.filter-item').clone().appendTo('#delete_seminar_items .tags-groups');
|
||||
$('#delete_seminar_items .tags-groups .filter-item').addClass('def');
|
||||
$(e).parents('.filter-item').clone().appendTo('#delete_application_form_items .tags-groups');
|
||||
$('#delete_application_form_items .tags-groups .filter-item').addClass('def');
|
||||
});
|
||||
}
|
||||
|
||||
$('#delete_seminar_items').modal('show', cleanTagInputs());
|
||||
$('#delete_application_form_items').modal('show', cleanTagInputs());
|
||||
function cleanTagInputs(){
|
||||
var $tagsDelete = $('#delete_seminar_items'),
|
||||
var $tagsDelete = $('#delete_application_form_items'),
|
||||
$filterItem = $tagsDelete.find('.filter-item');
|
||||
$filterItem.find('.card, .amount').remove();
|
||||
$filterItem.find('a').removeAttr('class');
|
||||
Reference in new issue
Block a user