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
const existClient = function () { | |
return { | |
validate: function (input) { | |
return new Promise((resolve, reject) => { | |
const value = input.value; | |
if (value === "") { | |
resolve({ valid: true }); | |
} else if (value.length > 0) { | |
$.ajax({ | |
url: "/clientes/findClient", |
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
const webpack = require('webpack'); | |
const path = require('path'); | |
const fs = require('fs'); | |
const del = require('del'); | |
const glob = require('glob'); | |
const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
const TerserJSPlugin = require('terser-webpack-plugin'); | |
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin'); | |
const WebpackMessages = require('webpack-messages'); |
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
const webpack = require('webpack'); | |
const path = require('path'); | |
const fs = require('fs'); | |
const del = require('del'); | |
const glob = require('glob'); | |
const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
const TerserJSPlugin = require('terser-webpack-plugin'); | |
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin'); | |
const WebpackMessages = require('webpack-messages'); |
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
// | |
// Global init of core components | |
// | |
// Init components | |
var KTComponents = function () { | |
// Public methods | |
return { | |
init: function () { | |
KTApp.init(); |
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
public static function getSvgIcon($path, $class = '', $svgClass = '') { | |
$full_path = $path; | |
if ( ! file_exists($path)) { | |
return '<!-- SVG file not found; '.$path.' -->'; | |
} | |
$svg_content = file_get_contents($path); | |
$dom = new DOMDocument(); | |
$dom->loadXML($svg_content); |
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
public static function getSvgIcon($path, $class = '', $svgClass = '') { | |
$full_path = $path; | |
if ( ! file_exists($path)) { | |
return '<!-- SVG file not found; '.$path.' -->'; | |
} | |
$svg_content = file_get_contents($path); | |
$dom = new DOMDocument(); | |
$dom->loadXML($svg_content); |
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
/** | |
* Destroy datatable to original DOM state before datatable was | |
* initialized | |
* @returns {jQuery} | |
*/ | |
destroy: function() { | |
$(datatable).parent().find('.' + pfx + 'datatable-pager').remove(); | |
var initialDatatable = $(datatable.initialDatatable).addClass(pfx + 'datatable-destroyed').show(); | |
$(datatable).replaceWith(initialDatatable); |
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
'use strict'; | |
(function($) { | |
var pluginName = 'mDatatable'; | |
var pfx = 'm-'; | |
var util = mUtil; | |
var app = mApp; | |
if (typeof util === 'undefined') throw new Error('Util class is required and must be included before ' + pluginName); |
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
'use strict'; | |
// Class definition | |
var DatatableItems = function() { | |
// Private functions | |
// basic demo | |
var createTable = function() { | |
// var arrayOfObjects = [{"id":28,"Title":"Sweden"}, {"id":56,"Title":"USA"}, {"id":89,"Title":"England"}]; |