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
using System.Collections.Generic; | |
using System.Linq; | |
using Blade.Utility; | |
using Sitecore; | |
using Sitecore.ContentSearch; | |
using Sitecore.ContentSearch.ComputedFields; | |
using Sitecore.Data.Fields; | |
using Sitecore.Data.Items; | |
using Sitecore.Layouts; |
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
function doFormValidation(validationGroup, errorclass) { | |
if (typeof Page_IsValid != "boolean") { | |
return true; // ASP.NET client side validation not properly loaded | |
} | |
if (Page_IsValid == false) { | |
if (Page_Validators) { | |
var invalidArrayIndex = 0; | |
var invalidArray = Array(); | |
for (var index = 0; index < Page_Validators.length; index++) { |
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
(function () { | |
'use strict'; | |
angular | |
.module('CsWebApp.core') | |
.factory('dataservice', dataservice); | |
function dataservice($http) { |
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
/** | |
* Show pretty datas for debugging purposes. | |
* ~USAGE:: <debug obj="nowPlayingApiResponse"></debug> | |
*/ | |
.directive('debug', function () { | |
return { | |
restrict: 'E', | |
scope: { | |
expression: '=obj', | |
callersName: '@obj' |