This repository has been archived by the owner on Feb 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from jmohler1970/FW/1
FW/1
- Loading branch information
Showing
134 changed files
with
3,893 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,106 @@ | ||
$( document ).ready(function() { | ||
|
||
// pages | ||
$(document).on("click", "#show-characters", function() { | ||
$(".showstatus").toggle(); | ||
$(this).toggleClass('current'); | ||
}); | ||
|
||
|
||
$(document).on("click", "#post-menu-enable", function() { | ||
|
||
$("#menu-items").slideToggle("fast"); | ||
}); | ||
if ($("#post-menu-enable").is(":checked")) { | ||
} else { | ||
$("#menu-items").css("display","none"); | ||
} | ||
|
||
//pages.edit | ||
function updateMetaDescriptionCounter() { | ||
var remaining = 155 - jQuery('#post-metad').val().length; | ||
jQuery('#countdown').text(remaining); | ||
Debugger.log('Meta Description has '+remaining+' characters remaining'); | ||
} | ||
|
||
if ($('#post-metad').length) { | ||
updateMetaDescriptionCounter(); | ||
$('#post-metad').change(updateMetaDescriptionCounter); | ||
$('#post-metad').keyup(updateMetaDescriptionCounter); | ||
} | ||
|
||
$('[data-toggle="popover"]').popover(); | ||
$('[data-toggle="tooltip"]').tooltip(); | ||
|
||
// pages.home | ||
$(document).on("click", ".delconfirm", function() { | ||
var message = $(this).attr("title"); | ||
var dlink = $(this).attr("href"); | ||
var mytr=$(this).parents("tr"); | ||
mytr.css("font-style", "italic"); | ||
var answer = confirm(message); | ||
if (answer) { | ||
return true; | ||
} | ||
else | ||
{ | ||
mytr.css('font-style', 'normal'); | ||
return false; | ||
} | ||
}); | ||
|
||
|
||
|
||
$('[data-toggle="popover"]').popover(); | ||
$('[data-toggle="tooltip"]').tooltip(); | ||
|
||
|
||
$('select.select2').select2(); | ||
|
||
$('table.datatables').DataTable({ | ||
paging : false, | ||
order : [[ 1, "asc" ]] | ||
}); | ||
|
||
|
||
|
||
//create new folder in pages | ||
var newFolderDiv = $("#new-folder"); | ||
|
||
$(document).on("click", "#createfolder", function($e) { | ||
$e.preventDefault(); | ||
newFolderDiv.find("form").show(); | ||
$(this).hide(); | ||
newFolderDiv.find('#foldername').focus(); | ||
}); | ||
|
||
$(document).on("click", "#new-folder .cancel", function($e) { | ||
$e.preventDefault(); | ||
newFolderDiv.find("#foldername").val(''); | ||
newFolderDiv.find("form").hide(); | ||
$('#createfolder').show(); | ||
}); | ||
|
||
$(document).on("click", "#metadata_toggle", function($e) { | ||
$e.preventDefault(); | ||
$("#metadata_window").slideToggle('fast'); | ||
$("#link_window").slideToggle('fast'); | ||
$(this).toggleClass('current'); | ||
}); | ||
|
||
|
||
|
||
//upload/details | ||
var copyKitTextArea = $('textarea.copykit'); | ||
$("select#img_info").change(function () { | ||
var codetype = $(this).val(); | ||
var code = $('p#' + codetype).html(); | ||
var originalBG = $('textarea.copykit').css('background-color'); | ||
var fadeColor = "#FFFFD1"; | ||
copyKitTextArea.fadeOut(500).fadeIn(500).html(code); | ||
}); | ||
$(document).on("click", ".select-all", function () { | ||
copyKitTextArea.focus().select(); | ||
return false; | ||
}); | ||
|
||
$('select.select2').select2(); | ||
|
||
$('table.datatables').DataTable({ | ||
paging : false, | ||
order : [[ 1, "asc" ]] | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
component accessors="true" { | ||
|
||
property beanFactory; | ||
property framework; | ||
|
||
property pageService; | ||
|
||
|
||
void function home(required struct rc) output="false" { | ||
|
||
|
||
if(rc.keyExists("deleteall")) { | ||
pageService.deleteAllBackups(); | ||
} | ||
|
||
rc.qryBackup = pageService.findBackups(); | ||
} | ||
|
||
|
||
void function edit(required struct rc) output="false" { | ||
|
||
rc.append(pageService.get(rc.slug, application.GSBACKUPSPATH & "pages/" )); | ||
} | ||
|
||
|
||
void function restore(required struct rc) { | ||
|
||
pageService.restoreBackup(rc.slug); | ||
variables.framework.redirect("pages.home", "all"); | ||
} | ||
|
||
|
||
void function delete(required struct rc) { | ||
|
||
pageService.deleteBackup(rc.slug); | ||
|
||
variables.framework.redirect(".home", "all"); | ||
} | ||
|
||
|
||
void function after(require struct rc) { | ||
|
||
variables.framework.setLayout("pages"); | ||
} | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
component accessors="true" { | ||
|
||
property beanFactory; | ||
property framework; | ||
|
||
|
||
|
||
|
||
|
||
void function after(require struct rc) { | ||
|
||
variables.framework.setLayout("docs"); | ||
} | ||
|
||
|
||
|
||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.