</table>
</tr>
</table>
-<script type="text/javascript">
- jQuery(document).ready(function($) {
+<script>
+jQuery(document).ready(function($) {
- $("#newInterestDialog").dialog({
- autoOpen: false,
- minWidth: 400,
- dialogClass: "glm-dialog-no-close"
- });
- $("#editInterestDialog").dialog({
- autoOpen: false,
- minWidth: 400,
- dialogClass: "glm-dialog-no-close"
- });
- $("#deleteInterestDialog").dialog({
- autoOpen: false,
- minWidth: 400,
- dialogClass: "glm-dialog-no-close"
- });
-
- $('#newInterestButton').click( function() {
- $("#newInterestDialog").dialog("open");
- });
- $('.editInterest').click( function() {
- var interestID = $(this).attr('data-interestID');
- var interestName = $(this).text();
- var interestRefTypeID = $(this).attr('data-refTypeID');
- var interestUsesValue = parseInt($(this).attr('data-interestUsesValue'));
- var interestDescr = $('#editInterestDescr_' + interestID).html();
- var interestShortDescr = $('#editInterestShortDescr_' + interestID).html();
- var interestGroupId = $(this).attr('data-group_id');
- console.log(interestGroupId);
- $('#editInterestID').val(interestID);
- $('#editInterestName').val(interestName.trim());
- $('#editInterestRef').val(interestRefTypeID);
- $('#editInterestUsesValue').prop('checked', interestUsesValue);
- $('#editGroupId').val(interestGroupId);
- $('.interestSearch').each(function(){
- $(this).prop('checked', false);
- });
- $("#editInterestDialog").dialog("open");
- });
- $('#editInterestCancel').click( function() {
- $("#editInterestDialog").dialog("close");
- });
- $('#newInterestCancel').click( function() {
- $("#newInterestDialog").dialog("close");
- });
+ $("#newInterestDialog").dialog({
+ autoOpen: false,
+ minWidth: 400,
+ dialogClass: "glm-dialog-no-close"
+ });
+ $("#editInterestDialog").dialog({
+ autoOpen: false,
+ minWidth: 400,
+ dialogClass: "glm-dialog-no-close"
+ });
+ $("#deleteInterestDialog").dialog({
+ autoOpen: false,
+ minWidth: 400,
+ dialogClass: "glm-dialog-no-close"
+ });
- var id = false;
- $('.deleteInterestButton').click( function() {
- id = $(this).attr('data-interestID');
- $("#deleteInterestDialog").dialog("open");
- });
- $('#deleteInterestConfirm').click( function() {
- $("#deleteInterestDialog").dialog("close");
- window.location.href = "{$thisUrl}?page={$thisPage}&glm_action=leads&option=delete&id=" + id;
- });
- $('#deleteInterestCancel').click( function() {
- $("#deleteInterestDialog").dialog("close");
+ $('#newInterestButton').click( function() {
+ $("#newInterestDialog").dialog("open");
+ });
+ $('.editInterest').click( function() {
+ var interestID = $(this).attr('data-interestID');
+ var interestName = $(this).text();
+ var interestRefTypeID = $(this).attr('data-refTypeID');
+ var interestUsesValue = parseInt($(this).attr('data-interestUsesValue'));
+ var interestDescr = $('#editInterestDescr_' + interestID).html();
+ var interestShortDescr = $('#editInterestShortDescr_' + interestID).html();
+ var interestGroupId = $(this).attr('data-group_id');
+ console.log(interestGroupId);
+ $('#editInterestID').val(interestID);
+ $('#editInterestName').val(interestName.trim());
+ $('#editInterestRef').val(interestRefTypeID);
+ $('#editInterestUsesValue').prop('checked', interestUsesValue);
+ $('#editGroupId').val(interestGroupId);
+ $('.interestSearch').each(function(){
+ $(this).prop('checked', false);
});
+ $("#editInterestDialog").dialog("open");
+ });
+ $('#editInterestCancel').click( function() {
+ $("#editInterestDialog").dialog("close");
+ });
+ $('#newInterestCancel').click( function() {
+ $("#newInterestDialog").dialog("close");
+ });
- /*
- * Edit area tabs
- */
- $('.glm-settings-tab').click( function() {
-
- // Clear tabl highlights and hide all tables
- $('.glm-settings-tab').removeClass('nav-tab-active');
- $('.glm-settings-table').addClass('glm-hidden');
-
- // Highlight selected tab
- $(this).addClass('nav-tab-active');
+ var id = false;
+ $('.deleteInterestButton').click( function() {
+ id = $(this).attr('data-interestID');
+ $("#deleteInterestDialog").dialog("open");
+ });
+ $('#deleteInterestConfirm').click( function() {
+ $("#deleteInterestDialog").dialog("close");
+ window.location.href = "{$thisUrl}?page={$thisPage}&glm_action=leads&option=delete&id=" + id;
+ });
+ $('#deleteInterestCancel').click( function() {
+ $("#deleteInterestDialog").dialog("close");
+ });
- // Show selected table
- var table = $(this).attr('data-show-table');
- $('#' + table).removeClass('glm-hidden');
+ /*
+ * Edit area tabs
+ */
+ $('.glm-settings-tab').click( function() {
+ // Clear table highlights and hide all tables
+ $('.glm-settings-tab').removeClass('nav-tab-active');
+ $('.glm-settings-table').addClass('glm-hidden');
- if (table == 'glm-table-address') {
- initMap();
- }
+ // Highlight selected tab
+ $(this).addClass('nav-tab-active');
- });
+ // Show selected table
+ var table = $(this).attr('data-show-table');
+ $('#' + table).removeClass('glm-hidden');
+ });
- /*
- * For the multiple select
- */
- $('#filterGroups').multiselect();
+ /*
+ * For the multiple select
+ */
+ $('#filterGroups').multiselect();
- });
+});
</script>
<table id="glm-table-groups" class="glm-admin-table glm-settings-table{if $option2!='group'} glm-hidden{/if}">
<tr>
</tr>
</table>
-<script type="text/javascript">
- jQuery(document).ready(function($) {
-
- $("#newGroupDialog").dialog({
- autoOpen: false,
- minWidth: 400,
- dialogClass: "glm-dialog-no-close"
- });
- $("#editGroupDialog").dialog({
- autoOpen: false,
- minWidth: 400,
- dialogClass: "glm-dialog-no-close"
- });
- $("#deleteGroupDialog").dialog({
- autoOpen: false,
- minWidth: 400,
- dialogClass: "glm-dialog-no-close"
- });
+<script>
+jQuery(document).ready(function($) {
- $('#newGroupButton').click( function() {
- $("#newGroupDialog").dialog("open");
- });
- $('.editGroup').click( function() {
- var groupID = $(this).attr('data-groupID');
- var groupName = $(this).text();
- var groupMembers = $(this).attr('data-members');
- $('#editGroupID').val(groupID);
- $('#editGroupName').val(groupName.trim());
- if ( groupMembers === '1' ) {
- $('#editGroupMembers').prop( 'checked', 'checked' );
- } else {
- $('#editGroupMembers').prop( 'checked', null );
- }
- $("#editGroupDialog").dialog("open");
- });
- $('#editGroupCancel').click( function() {
- $("#editGroupDialog").dialog("close");
- });
- $('#newGroupCancel').click( function() {
- $("#newGroupDialog").dialog("close");
- });
+ $("#newGroupDialog").dialog({
+ autoOpen: false,
+ minWidth: 400,
+ dialogClass: "glm-dialog-no-close"
+ });
+ $("#editGroupDialog").dialog({
+ autoOpen: false,
+ minWidth: 400,
+ dialogClass: "glm-dialog-no-close"
+ });
+ $("#deleteGroupDialog").dialog({
+ autoOpen: false,
+ minWidth: 400,
+ dialogClass: "glm-dialog-no-close"
+ });
- var group_id = false;
- $('.deleteGroupButton').click( function() {
- group_id = $(this).attr('data-groupID');
- $("#deleteGroupDialog").dialog("open");
- });
- $('#deleteGroupConfirm').click( function() {
- $("#deleteGroupDialog").dialog("close");
- window.location.href = "{$thisUrl}?page={$thisPage}&glm_action=leads&option=deleteGroup&id=" + group_id + "&option2=group";
- });
- $('#deleteGroupCancel').click( function() {
- $("#deleteGroupDialog").dialog("close");
- });
+ $('#newGroupButton').click( function() {
+ $("#newGroupDialog").dialog("open");
+ });
+ $('.editGroup').click( function() {
+ var groupID = $(this).attr('data-groupID');
+ var groupName = $(this).text();
+ var groupMembers = $(this).attr('data-members');
+ $('#editGroupID').val(groupID);
+ $('#editGroupName').val(groupName.trim());
+ if ( groupMembers === '1' ) {
+ $('#editGroupMembers').prop( 'checked', 'checked' );
+ } else {
+ $('#editGroupMembers').prop( 'checked', null );
+ }
+ $("#editGroupDialog").dialog("open");
+ });
+ $('#editGroupCancel').click( function() {
+ $("#editGroupDialog").dialog("close");
+ });
+ $('#newGroupCancel').click( function() {
+ $("#newGroupDialog").dialog("close");
+ });
+ var group_id = false;
+ $('.deleteGroupButton').click( function() {
+ group_id = $(this).attr('data-groupID');
+ $("#deleteGroupDialog").dialog("open");
+ });
+ $('#deleteGroupConfirm').click( function() {
+ $("#deleteGroupDialog").dialog("close");
+ window.location.href = "{$thisUrl}?page={$thisPage}&glm_action=leads&option=deleteGroup&id=" + group_id + "&option2=group";
});
+ $('#deleteGroupCancel').click( function() {
+ $("#deleteGroupDialog").dialog("close");
+ });
+
+});
</script>