Changeset 2059637
- Timestamp:
- 03/29/2019 12:40:05 PM (7 years ago)
- Location:
- callsheet/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (3 diffs)
-
admin/js/callsheet-admin.js (modified) (2 diffs)
-
callsheet.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
callsheet/trunk/README.txt
r2046409 r2059637 6 6 Tested up to: 4.9 7 7 Requires PHP: 7.0 8 Stable tag: 1.0. 28 Stable tag: 1.0.3 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 55 55 56 56 == Changelog == 57 = 1.0.3 = 58 * Press Agency issue is solved 57 59 58 60 = 1.0.2 = … … 67 69 68 70 == Upgrade Notice == 71 = 1.0.3 = 72 Press Agency issue is solved 69 73 70 74 = 1.0.2 = -
callsheet/trunk/admin/js/callsheet-admin.js
r2029178 r2059637 415 415 }); 416 416 jQuery('.on_save_agency').click(function (e) { 417 var agency_name = jQuery('.agency-name'); 417 418 var link_class = jQuery('.agency-link'); 418 var url =''; 419 for(var i = 0; i < link_class.length; i++) { 420 url = link_class[i].value; 421 if(url==''){ 422 423 } 424 else{ 425 if(validateURL(url)) { 426 427 }else{ 428 alert('It Must be valid URL'); 429 jQuery(link_class[i]).focus(); 430 return false; 431 //jQuery(".save_information").attr('disabled', 'disabled'); 432 433 } 434 } 435 } 419 var url =''; 420 var ag_name = ''; 421 for(var i = 0; i < agency_name.length; i++) { 422 ag_name = agency_name[i].value; 423 if(ag_name == '') { 424 alert('Name should not be empty'); 425 jQuery(agency_name[i]).focus(); 426 return false; 427 } 428 } 429 for(var i = 0; i < link_class.length; i++) { 430 url = link_class[i].value; 431 if(url==''){ 432 433 } 434 else{ 435 if(validateURL(url)) { 436 437 }else{ 438 alert('It Must be valid URL'); 439 jQuery(link_class[i]).focus(); 440 return false; 441 //jQuery(".save_information").attr('disabled', 'disabled'); 442 443 } 444 } 445 } 436 446 437 447 var formdata = jQuery('.press_agencies_form').serialize(); … … 478 488 479 489 newTextBoxDiv.after().html( 480 '<input type="text" placeholder="Agency Name" class=" " data-id="agencies_'+counter+'" id="agencies_'+counter+'" name="agencies[]" value="" /> <input class="agency-link" placeholder="Agency Link" type="text" data-id="agencies_url_'+counter+'" id="agencies_url_'+counter+'" name="agencies_url[]" value="" /> <select name="agencies_cat[]" id="agencies_cat_'+counter+'" data-id="agencies_cat_'+counter+'"><option value="public_relations">Public Relations</option><option value="social_media">Social Media</option><option value="public_social">Public Relations / Social Media</option></select> <button class="remove_data btn btn-default red" data-id="'+counter+'">Delete</button>');490 '<input type="text" placeholder="Agency Name" class="agency-name" data-id="agencies_'+counter+'" id="agencies_'+counter+'" name="agencies[]" value="" /> <input class="agency-link" placeholder="Agency Link" type="text" data-id="agencies_url_'+counter+'" id="agencies_url_'+counter+'" name="agencies_url[]" value="" /> <select name="agencies_cat[]" id="agencies_cat_'+counter+'" data-id="agencies_cat_'+counter+'"><option value="public_relations">Public Relations</option><option value="social_media">Social Media</option><option value="public_social">Public Relations / Social Media</option></select> <button class="remove_data btn btn-default red" data-id="'+counter+'">Delete</button>'); 481 491 482 492 newTextBoxDiv.appendTo("#TextBoxesGroup"); -
callsheet/trunk/callsheet.php
r2046496 r2059637 17 17 * Plugin URI: https://wordpress.org/plugins/callsheet/ 18 18 * Description: Callsheet allows you to add actors/actresses/directors and their details to show them to end users. 19 * Version: 1.0. 019 * Version: 1.0.2 20 20 * Author: Claudius Neidig 21 21 * Author URI: https://www.linkedin.com/in/claudius-neidig/ … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define( 'CALLSHEET_VERSION', '1.0. 2' );38 define( 'CALLSHEET_VERSION', '1.0.3' ); 39 39 40 40 /** … … 1848 1848 //print_r($press_agencies); 1849 1849 foreach ($press_agencies as $press_ag) { 1850 if(($press_ag['agency'] != '')) {1850 1851 1851 ?> 1852 1852 1853 1853 <div id="TextBoxDiv<?php echo $counter;?>" class="press_agency"> 1854 1854 <!-- <input type="hidden" name="client_id" value="<?php //echo $result->client_id; ?>"/> --> 1855 <input type="text" class=" " placeholder="Agency Name" data-id="agencies_<?php echo $counter;?>" id="agencies_<?php echo $counter;?>" name="agencies[]" value="<?php echo $press_ag['agency'];; ?>" />1855 <input type="text" class="agency-name" placeholder="Agency Name" data-id="agencies_<?php echo $counter;?>" id="agencies_<?php echo $counter;?>" name="agencies[]" value="<?php echo $press_ag['agency'];; ?>" /> 1856 1856 <input type="text" class="agency-link" placeholder="Agency Link" data-id="agencies_url_<?php echo $counter;?>" id="agencies_url_<?php echo $counter;?>" name="agencies_url[]" value="<?php echo $press_ag['link']; ?>" /> 1857 1857 <select name="agencies_cat[]" id="agencies_cat_<?php echo $counter; ?>" data-id="agencies_cat_<?php echo $counter; ?>"> … … 1862 1862 <button class="remove_data btn btn-default red" data-id="<?php echo $counter;?>">Delete</button> 1863 1863 </div> 1864 <?php }1864 <?php 1865 1865 $counter++; 1866 1866 }
Note: See TracChangeset
for help on using the changeset viewer.