mako 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTM0ZWEwZDM2NGE1ODIwYjljYzQzNDMxZDQ0OWZjMDc5MTJkZmRjNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWU1MjIzZWM5MzhjY2QxNGJlODk0NzEyODBmM2U5NTAxMDE3NTA4Yg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzYyYjlkMGJjMjgxN2UwNzRhYzM4MDVhNDU4NDczYTVmNmIxMjIxMGZkM2Rh
|
10
|
+
M2ZmYjdhN2JmYTBlNWI2MzA1NzliNjI4ZmFkMDUyOTNmZmIxYTEwOWJhOGRh
|
11
|
+
OGViODBiZGJhZGYwZTdkNzJlYzA1YjM4NzY5ODMwYTYyMzAxZDU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Mzk0YzVkZGM4MjkzN2ZiOGJjYzlkODdhNWJlODk2NGYxN2FiZDFmNzBmMDhm
|
14
|
+
MGZiYWI4MjE0MzM3MGE3OWQ0YWUxNGI4MGEyZjMwZmUzMTNiZTY0OWJjZTMz
|
15
|
+
ZWZlZGU5YzllYmZhMzYwYWUxZjc5NDIyNjEwOWIxNjk1NGQ3ZWE=
|
data/bin/mako
CHANGED
@@ -489,16 +489,34 @@
|
|
489
489
|
this.widget = widget;
|
490
490
|
questionSetVersion = version;
|
491
491
|
}
|
492
|
-
|
493
|
-
|
492
|
+
// similar to code in MediaItem -> should both use the same function
|
493
|
+
public static function resolveSource(asset_id:String, type:String = 'notASwf!'):String
|
494
494
|
{
|
495
|
-
|
495
|
+
if(type == '.swf') // swfs will show preview images instead of playing the actual swf
|
496
496
|
{
|
497
497
|
return CreatorConfig.getKogneatoAssetPreviewLink(asset_id);
|
498
498
|
}
|
499
499
|
|
500
500
|
return CreatorConfig.getKogneatoAssetLink(asset_id);
|
501
501
|
}
|
502
|
+
|
503
|
+
// Generic method to scrub error messages temporarily held within the qset.
|
504
|
+
public function scrubErrorsFromQSet(qSet:Object):void
|
505
|
+
{
|
506
|
+
// items[0] is hard-coded because that's just how qsets roll.
|
507
|
+
for (var index:String in qSet.items[0].items)
|
508
|
+
{
|
509
|
+
var q:Object = qSet.items[0].items[index];
|
510
|
+
|
511
|
+
for (var id:String in q.options)
|
512
|
+
{
|
513
|
+
if (id == 'errorMessage' || id == 'errorTitle')
|
514
|
+
{
|
515
|
+
delete q.options[id];
|
516
|
+
}
|
517
|
+
}
|
518
|
+
}
|
519
|
+
}
|
502
520
|
]]>
|
503
521
|
</mx:Script>
|
504
522
|
</mx:Application>
|
@@ -378,7 +378,7 @@ public class Question
|
|
378
378
|
{
|
379
379
|
if(str.length == 0)
|
380
380
|
{
|
381
|
-
options.errorMessage = "Please look over the highlighted fields and enter information where necessary.";
|
381
|
+
options.errorMessage = "Please look over the highlighted fields and enter information where necessary.";
|
382
382
|
options.errorTitle = "Missing Information";
|
383
383
|
return true;
|
384
384
|
}
|