Article previous html

From Redazione
Jump to navigation Jump to search
Line 284: Line 284:
  
 
$('form').submit(function() {
 
$('form').submit(function() {
  console.log('abc')
+
 
 
  var type = $(this).find('[name="Form article[Type]"]').val()
 
  var type = $(this).find('[name="Form article[Type]"]').val()
 
  var title = $(this).find('[name="Form article[Title]"]').val()
 
  var title = $(this).find('[name="Form article[Title]"]').val()
 
  var authors = $(this).find('[name="Form article[Authors]"]').val()
 
  var authors = $(this).find('[name="Form article[Authors]"]').val()
console.log(type)
+
 
 
  var pagename;
 
  var pagename;
 
  switch(type) {
 
  switch(type) {
Line 314: Line 314:
  
 
  $(this).find('[name="PageName"]').val(pagename)
 
  $(this).find('[name="PageName"]').val(pagename)
console.log(pagename)
 
alert(1)
 
  
 +
return false;
 
});
 
});
  

Revision as of 14:00, 6 March 2020

Different kind of articles might be published in different categories.
Please enter first and last name of authors separated by comma.
The day is optional, and specifically for kind of ‘post” and ‘article” might be omitted.
(Optionally), insert one significant thread representing the article. It might be used as a preview of it.
(Optionally), enter or more tags relevant to this article: they might be used to insert it under one or more corresponding categories.