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
<h3>Edit table {{selectedtable.tablename}}</h3> | |
<div ng-repeat="thisrow in userdata" class="col-lg-9 col-md-9"> | |
<div ng-repeat="(key, value) in schema" class="row"> | |
<!-- text --> | |
<div ng-if="compareField(value,'text')"> | |
<input type="text" name="{{key}}" ng-model="thisrow[key]" class="form-control"> | |
</div> | |
</div> | |
</div> |
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
'use strict'; | |
/** | |
* @ngdoc function | |
* @name datasprocketApp.controller:MainCtrl | |
* @description | |
* # MainCtrl | |
* Controller of the datasprocketApp | |
*/ | |
angular.module('datasprocketApp') |
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
{"data":{"userdata":[{"id":"549507ccd2cc1986d4000005","created_at":"2012-08-28T18:59:46.000Z","updated_at":null,"name":"doggy","pic":"","width":0,"height":0,"weight":0,"colour":0,"condition":0,"price":44,"description":"<p>\n asdf</p>","listorder":370,"availability":null},{"id":"549507ccd2cc1986d4000006","created_at":"2012-08-28T19:02:25.000Z","updated_at":"2013-01-07T14:11:00.000Z","name":"cat","pic":"","width":0,"height":0,"weight":0,"colour":0,"condition":0,"price":44,"description":"<p>\n adsf</p>","listorder":360,"availability":null},{"id":"549507ccd2cc1986d4000007","created_at":"2012-08-28T19:19:43.000Z","updated_at":null,"name":"monkey","pic":"","width":0,"height":0,"weight":0,"colour":0,"condition":0,"price":3,"description":"<p>\n asdf</p>","listorder":800,"availability":null},{"id":"549507ccd2cc1986d4000008","created_at":"2012-08-28T19:30:46.000Z","updated_at":null,"name":"unicorn","pic":"","width":0,"height":0,"weight":0,"colour":0,"condition":0,"price":32,"descript |
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
Y.Photogallery = Y.Base.create('photogallery', Y.Widget, [], { | |
maxwidth : 500, | |
initSpace : function() { | |
this.setInitialSpace(); | |
}, | |
setInitialSpace : function() { | |
Y.log(Y.Photogallery.maxwidth); | |
}, |
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
var newimage = new Image(); | |
newimage.src = thumbpic; | |
Y.one('#photoswrapperproxyinner').append('<div class="photo newimage"><img src = "' + newimage.src + '" /></div>'); | |
var imagewait = setInterval(function() { | |
if (parseInt(Y.one('#photoswrapperproxyinner .newimage').getComputedStyle('width')) == newimage.width && parseInt(Y.one('#photoswrapperproxyinner .newimage').getComputedStyle('height')) == newimage.height) { | |
Y.one('#photoswrapperproxyinner .newimage').removeClass('newimage'); | |
clearInterval(imagewait); | |
var photogallery = new Y.Photogallery(); | |
photogallery.resizeSpace(); | |
} |
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
YUI.add('photogallery', function(Y){ | |
Y.Photogallery = Y.Base.create('photogallery', Y.Widget, [], { | |
initCollectionObservers : function() { | |
Y.all('#collectionsul .collectionli .buttonWrapper').each(function(o) { | |
this.set('cid', o.get('id').replace(/^collection_/,'')); | |
var attrs = this.getAttrs(); | |
webkit.setupButton(o.get('id'), Y.bind(this.gotoCollection, this), attrs); | |
},this); |
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
#progressbars { | |
width:300px; | |
} | |
.yui3-progressbar { | |
margin-bottom:3px; | |
border: 2px solid #c4c4c4; | |
border-radius:5px; | |
-moz-border-radius: 5px; | |
-webkit-border-radius:5px; |
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.cacheset = function(owner, datarequest, object) { | |
// assigns object to webkitcache | |
YUI().use('cache', function(Y) { | |
if (!webkit.wkcache) { | |
webkit.wkcache = new Y.Cache({max:10}); | |
} | |
if (webkit.Y.one('#' + object)) { | |
YUI().log('set cache based on domID'); | |
// part of DOM, create clone |
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
var webkitcache = $H(); | |
this.cacheset = function(owner, datarequest, object) { | |
// assigns object to webkitcache global hash | |
if ($(object)) { | |
// part of DOM, create clone | |
webkitcache.set(owner + '_' + datarequest, object.cloneNode(true)); | |
} | |
else { |
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.cacheset = function(owner, datarequest, object) { | |
// assigns object to webkitcache | |
YUI().use('cache', 'node', function(Y) { | |
if (!webkit.wkcache) { | |
webkit.wkcache = new Y.Cache({max:10}); | |
} | |
if (Y.one('#' + object)) { | |
// cache request sent as dom ID rather than node object | |
object = Y.one('#' + object); |
OlderNewer