Skip to content
This repository
Browse code

MINOR Removed jQuery.metadata usage in CMS, use jQuery.data() and HTM…

…L5 data attributes instead. Also fixes errors where jQuery.metadata tries to eval() HTML5 data attrs, which isn't always applicable
  • Loading branch information...
commit ac56fef8b442ede404dbd6739751985c135cc7f1 1 parent 9190bc4
Ingo Schommer authored
1  admin/code/LeftAndMain.php
@@ -239,7 +239,6 @@ function init() {
239 239
 				THIRDPARTY_DIR . '/jquery-cookie/jquery.cookie.js',
240 240
 				THIRDPARTY_DIR . '/jquery-query/jquery.query.js',
241 241
 				SAPPHIRE_ADMIN_DIR . '/thirdparty/jquery-notice/jquery.notice.js',
242  
-				THIRDPARTY_DIR . '/jquery-metadata/jquery.metadata.js',
243 242
 				SAPPHIRE_ADMIN_DIR . '/thirdparty/jsizes/lib/jquery.sizes.js',
244 243
 				SAPPHIRE_ADMIN_DIR . '/thirdparty/jlayout/lib/jlayout.border.js',
245 244
 				SAPPHIRE_ADMIN_DIR . '/thirdparty/jlayout/lib/jquery.jlayout.js',
4  admin/javascript/LeftAndMain.js
@@ -4,8 +4,6 @@ jQuery.noConflict();
4 4
  * File: LeftAndMain.js
5 5
  */
6 6
 (function($) {
7  
-	$.metadata.setType('html5');
8  
-	
9 7
 	// setup jquery.entwine
10 8
 	$.entwine.warningLevel = $.entwine.WARN_LEVEL_BESTPRACTISE;
11 9
 	$.entwine('ss', function($) {
@@ -347,7 +345,7 @@ jQuery.noConflict();
347 345
 		 */
348 346
 		$('.cms-container .field.date input.text').entwine({
349 347
 			onmatch: function() {
350  
-				var holder = $(this).parents('.field.date:first'), config = holder.metadata({type: 'class'});
  348
+				var holder = $(this).parents('.field.date:first'), config = holder.data();
351 349
 				if(!config.showcalendar) return;
352 350
 
353 351
 				config.showOn = 'button';

0 notes on commit ac56fef

Please sign in to comment.
Something went wrong with that request. Please try again.