This file contains hidden or 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
function addClass(el, className) { | |
if (el.classList) | |
el.classList.add(className); | |
else | |
el.className += ' ' + className; | |
} | |
function removeClass(el, className) { | |
if (el.classList) | |
el.classList.remove(className); |
This file contains hidden or 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
/** | |
* Overrides the browser's form submission and sends the form via ajax instead. | |
* Uses the microajax function: https://code.google.com/p/microajax/ | |
*/ | |
var AjaxForm = { | |
iframe: null, | |
form: null, | |
submit: function(form) { | |
if(PageChangeWarning) { |
This file contains hidden or 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
/* | |
* JsonProcessor.run() will do all the fun stuff we need to do for a json response. | |
* Return true if we are not redirecting to a new page (i.e. so that the form will unhide) | |
*/ | |
var JsonProcessor = { | |
lastErrorFields: [], | |
run: function(data) { | |
var staying_on_page = true; | |
var i; |
This file contains hidden or 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
<?php | |
namespace App\Services; | |
use Collective\Html\FormBuilder; | |
class AjaxFormBuilder extends FormBuilder { | |
protected $form_id; | |
protected $readonly = false; |
This file contains hidden or 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
.datepicker { | |
position: absolute; | |
font-size: 10px; | |
font-family: @datepicker-font; | |
color: @white; | |
line-height: normal; | |
width: 172px; | |
height: 135px; | |
padding: 14px; | |
background: @datepicker-frame-image no-repeat; |
This file contains hidden or 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
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use Illuminate\Http\JsonResponse; | |
use Illuminate\Foundation\Bus\DispatchesCommands; | |
use Illuminate\Routing\Controller as BaseController; | |
use Illuminate\Foundation\Validation\ValidatesRequests; |
This file contains hidden or 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 javascript draws a calendar object and updates the passed input elements with the value when a date is clicked. | |
*/ | |
var monthNames = [ | |
'Jan', | |
'Feb', | |
'Mar', | |
'Apr', | |
'May', |
This file contains hidden or 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
#!/bin/bash | |
LOCAL_PATH=$1 | |
REMOTE_SERVER=$2 | |
REMOTE_PATH=$3 | |
CHANGED_FILE=$4 | |
echo Changed File: $CHANGED_FILE | |
FILE=`echo $CHANGED_FILE | sed 's|'$LOCAL_PATH'/||'` |
This file contains hidden or 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
@if(!empty($table)) | |
<table class='data'> | |
@foreach($table['rows'] as $row) | |
<?php | |
$row['attributes']['class'] = (!empty($row['attributes']['class']) ? $row['attributes']['class'] . ' ' : '') . $classes[$current_class]; | |
$current_class = ($current_class + 1) % 2; | |
?> | |
<tr @if(!empty($row['attributes'])) @foreach($row['attributes'] as $key=>$value) {{ $key }}="{{ $value }}" @endforeach @endif > | |
@foreach($row['cells'] as $cell) | |
<{{ !empty($cell['dom']) ? $cell['dom'] : 'td' }} @if(!empty($cell['attributes'])) @foreach($cell['attributes'] as $key=>$value) {{ $key }}="{{ $value }}" @endforeach @endif > |
OlderNewer